Html, Java, Dhtml, Xhtml
3 posters
Page 1 of 1
Html, Java, Dhtml, Xhtml
Hello, could someone explain me how to add this to my portal i alerdy tryed but when i check the portal it dosnt work just an empty place, the script is :
and the second script is
Thank you for help.
<h2><script language="JavaScript1.2">
//Neon Lights Text II by G.P.F. (gpf@beta-cc.de)
//visit http://www.beta-cc.de
//Visit http://www.dynamicdrive.com for this script
var message="Plasmafire Gaming Comunity"
var neonbasecolor="gray"
var neontextcolor="blue"
var neontextcolor2="#FFFFA8"
var flashspeed=100 // speed of flashing in milliseconds
var flashingletters=3 // number of letters flashing in neontextcolor
var flashingletters2=1 // number of letters flashing in neontextcolor2 (0 to disable)
var flashpause=0 // the pause between flash-cycles in milliseconds
///No need to edit below this line/////
var n=0
if (document.all||document.getElementById){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(message)
function crossref(number){
var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
return crossobj
}
function neon(){
//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
crossref(m).style.color=neonbasecolor
}
//cycle through and change individual letters to neon color
crossref(n).style.color=neontextcolor
if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2
if (n>(flashingletters+flashingletters2)-1) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor
if (n<message.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",flashpause)
return
}
}
function beginneon(){
if (document.all||document.getElementById)
flashing=setInterval("neon()",flashspeed)
}
beginneon()
</script></h2>
and the second script is
<h2>
<script language="JavaScript1.2"> /* Neon Lights Text Distributed
by Hypergurl (http://www.hypergurl.com) */ var message="Your text message
goes here!" var neonbasecolor="gray" var neontextcolor="yellow"
var flashspeed=100 //in milliseconds ///No need to edit below this line///// var
n=0 if (document.all){ document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++) document.write('<span id="neonlight">'+message.charAt(m)+'</span>')
document.write('</font>') //cache reference to neonlight array var tempref=document.all.neonlight
} else document.write(message) function neon(){ //Change all letters to base color
if (n==0){ for (m=0;m<message.length;m++) tempref[m].style.color=neonbasecolor
} //cycle through and change individual letters to neon color tempref[n].style.color=neontextcolor
if (n<tempref.length-1) n++ else{ n=0 clearInterval(flashing) setTimeout("beginneon()",1500)
return } } function beginneon(){ if (document.all) flashing=setInterval("neon()",flashspeed)
} beginneon() </script> </h2>
Thank you for help.
Re: Html, Java, Dhtml, Xhtml
You should know
If We do not know what is the utility of these scripts, we can not know if it is possible
If We do not know what is the utility of these scripts, we can not know if it is possible
Edje- Guest
Re: Html, Java, Dhtml, Xhtml
Look on the site where you found it, maybe you can see a description of the script
Edje- Guest
Re: Html, Java, Dhtml, Xhtml
Did you press before instering the script?
Caihlem- Energetic
- Posts : 8969
Reputation : 342
Language : English, French & Female
Location : You can't fly like the phenix
Re: Html, Java, Dhtml, Xhtml
That script will make what ever text you enter in the
var message="Plasmafire Gaming Comunity" line glow
var message="Plasmafire Gaming Comunity" line glow
Guest- Guest
Re: Html, Java, Dhtml, Xhtml
Yes i presed it, dos not work.
Could some one test this scripts on his site please ?
And then post here how he made it ?
Could some one test this scripts on his site please ?
And then post here how he made it ?
Re: Html, Java, Dhtml, Xhtml
Hey can someone help me there is other users you didn't deserted when they had problems with scrits...
Re: Html, Java, Dhtml, Xhtml
Hello
so i test the 2 scripts and the second isn't work.
But the first script work.
Put it in your home page or in a module of portal.
Clic in [desallow HTML editor] and past the code
You will see a beautiful effect
so i test the 2 scripts and the second isn't work.
But the first script work.
Put it in your home page or in a module of portal.
Clic in [desallow HTML editor] and past the code
You will see a beautiful effect
admin**- Guest
Re: Html, Java, Dhtml, Xhtml
for the script one is javascript like color flash text "Plasmafire Gaming Comunity"
and the script two is error code -.- how come javascript can mixed with html syntax?
this the error code
and the script two is error code -.- how come javascript can mixed with html syntax?
this the error code
- Code:
{ document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++) document.write('<span id="neonlight">'+message.charAt(m)+'</span>')
document.write('</font>')
Similar topics
» DHTML/HTML Pages?
» Allow XHTML & Javascript on HTML Pages!
» Learning Basic HTML/XHTML(PLEASE MAKE THIS STICKY)
» ask about JAVA and HTML
» HTML/JAVA
» Allow XHTML & Javascript on HTML Pages!
» Learning Basic HTML/XHTML(PLEASE MAKE THIS STICKY)
» ask about JAVA and HTML
» HTML/JAVA
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum