[color=#000000]<SCRIPT LANGUAGE="JavaScript">
var txt=" :-)Gracias a NickJP Vas A tener tu pagina web;-)- ";
var espera=100;
var refresco=null;
function rotulo_title() {
document.title=txt;
txt=txt.substring(1,txt.length)+txt.charAt(0);
refresco=setTimeout("rotulo_title()",espera);}
rotulo_title();
</SCRIPT>[/color]
Ejemplo: http://xkun.net23.net/NickJP/1.html
Menu enlaces con marco
[color=#000000]
<head>
<style>
.menulines{
border:1px solid white;
}
.menulines a{
text-decoration:none;
color:black;
}
</style>
<script language="JavaScript1.2">
function borderize(what,color){
what.style.borderColor=color
}
function borderize_on(e){
if (document.all)
source3=event.srcElement
else if (document.getElementById)
source3=e.target
if (source3.className=="menulines"){
borderize(source3,"black")
}
else{
while(source3.tagName!="TABLE"){
source3=document.getElementById? source3.parentNode : source3.parentElement
if (source3.className=="menulines")
borderize(source3,"black")
}
}
}
function borderize_off(e){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
borderize(source4,"white")
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
borderize(source4,"white")
}
}
}
</script>
</head>
<body>
<table border="0" width="200" cellspacing="0" cellpadding="0"
onMouseover="borderize_on(event)" onMouseout="borderize_off(event)">
<tr><td width="100%" bgcolor="#E6E6E6"><font face="Arial" size=3><b>Menú Principal</b></font></td></tr>
<tr><td width="100%" class="menulines"><font face="Arial" size=2><a href="#">Monta tu web y Gratis!</a></font></td></tr>
<tr><td width="100%" class="menulines"><font face="Arial" size=2><a href="#">
El portal de humor</a> </font></td></tr>
<tr><td width="100%" class="menulines"><font face="Arial" size=2><a href="#">El mundo del motor </a> </font></td></tr>
<tr><td width="100%" class="menulines"><font face="Arial" size=2><a href="#">
Un portal nuevo para ti </a></font></td></tr>
<tr><td width="100%" class="menulines"><font face="Arial" size=2><a href="#">Tu puedes entrar en el </a> </font></td></tr>
</table>
<br><br><br>
</body>
</html>[/color]
Ejemplo: http://xkun.net23.net/NickJP/2.html
Boton multiples enlaces Boto
[color=#000000]
<font face="Arial, Helvetica, sans-serif" size=2>
<script language="JavaScript">
var timerID = null
var timerRunning = false
var charNo = 0
var charMax = 0
var lineNo = 0
var lineMax = 3
var lineArr = new Array(lineMax)
var urlArr = new Array(lineMax)
lineArr[1] = "Crea tu propia WEB"
urlArr[1] = "url"
lineArr[2] = "Los Codigos Web"
urlArr[2] = "url"
lineArr[3] = "La web del Albañil"
urlArr[3] = "url"
var lineText = lineArr[1]
function StartShow() {
StopShow()
ShowLine()
timerRunning = true
}
function FillSpaces() {
for (var i = 1; i <= lineWidth; i++) {
spaces += " "
}
}
function StopShow() {
if (timerRunning) {
clearTimeout(timerID)
timerRunning = false
}
}
function ShowLine() {
if (charNo == 0) {
if (lineNo < lineMax) {
lineNo++
}
else {
lineNo = 1
}
lineText = lineArr[lineNo]
charMax = lineText.length
}
if (charNo <= charMax) {
document.formDisplay.buttonFace.value = lineText.substring(0, charNo)
charNo++
timerID = setTimeout("ShowLine()", 100)
}
else {
charNo = 0
timerID = setTimeout("ShowLine()", 3000)
}
}
function GotoUrl(url)
{
top.location.href = url
}
document.write("<form name="formDisplay">");
document.write("<input type="button" name="buttonFace" value="&{lineText}" size=18 onClick="GotoUrl(urlArr[lineNo])">");
document.write("</form>");
StartShow();
</script></font>
[/color]
Ejemplo: http://xkun.net23.net/NickJP/3.html
Texto que aparece
[color=#000000]
<script language="JavaScript1.2">var delay=3000 //pausa (en milisegundos)
var fcontent=new Array()
begintag='<font face="Arial" size=2>' //tag que abre los mensajes
fcontent[0]="<b></b><br><br>Crea tu propia pagina personal."
fcontent[1]="Monta tu pagina con FrontPage Express , veras que es muy facil."
fcontent[2]="Con NickJP Aprenderas mucho xD."
closetag='</font>'
var fwidth=150 //ancho
var fheight=150 //alto
///No editar/////////////////
var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0
if (DOM2)
faderdelay=2000
//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}
index++
setTimeout("changecontent()",delay+faderdelay)
}
// colorfade() partially by Marcio Galli for Netscape Communications. ////////////
frame=20;
hex=255 // Initial color value.
function colorfade() {
// 20 frames fading process
if(frame>0) {
hex-=10; // increase color value
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")";// Set color value.
frame--;
setTimeout("colorfade()",20);
}
else{
document.getElementById("fscroller").style.color="rgb(255,0,0)";
frame=20;
hex=255
}
}
if (ie4||DOM2)
document.write('<div id="fscroller" style=border:1px solid ;width:'+fwidth+';height:'+fheight+';padding:2px></div>')
window.onload=changecontent</script><ilayer id="fscrollerns" width=&{fwidth}; height=&{fheight};><layer id="fscrollerns_sub" width=&{fwidth}; height=&{fheight}; left=0 top=0></layer></ilayer>
[/color]
Ejemplo: http://xkun.net23.net/NickJP/4.html