Gå til innhold

HTML kode som viser info om link


Anbefalte innlegg

Videoannonse
Annonse

javascriptet:

function stm(t,s) {
 if(sNav) {
 	if(t.length<2||s.length<25) {
 var ErrorNotice = "DHTML TIP MESSAGE VERSION 1.2 ERROR NOTICE.\n"
 if(t.length<2&&s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array and Text Array of this tip.\nTheir should be 25 entries in every Style Array even though empty and 2 in every Text Array. You defined only "+s.length+" entries in the Style Array and "+t.length+" entry in the Text Array. This tip won't be viewed to avoid errors")
 else if(t.length<2) alert(ErrorNotice+"It looks like you removed an entry or more from the Text Array of this tip.\nTheir should be 2 entries in every Text Array. You defined only "+t.length+" entry. This tip won't be viewed to avoid errors.")
 else if(s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array of this tip.\nTheir should be 25 entries in every Style Array even though empty. You defined only "+s.length+" entries. This tip won't be viewed to avoid errors.")
 }
 	else {
 var ab = "";var ap = ""
 var titCol = (s[0])? "COLOR='"+s[0]+"'" : ""
 var txtCol = (s[1])? "COLOR='"+s[1]+"'" : ""
 var titBgCol = (s[2])? "BGCOLOR='"+s[2]+"'" : ""
 var txtBgCol = (s[3])? "BGCOLOR='"+s[3]+"'" : ""
 var titBgImg = (s[4])? "BACKGROUND='"+s[4]+"'" : ""	
 var txtBgImg = (s[5])? "BACKGROUND='"+s[5]+"'" : ""
 var titTxtAli = (s[6] && s[6].toLowerCase()!="left")? "ALIGN='"+s[6]+"'" : ""
 var txtTxtAli = (s[7] && s[7].toLowerCase()!="left")? "ALIGN='"+s[7]+"'" : ""   
 var add_height = (s[15])? "HEIGHT='"+s[15]+"'" : ""
 if(!s[8])  s[8] = "Verdana,Arial,Helvetica"
 if(!s[9])  s[9] = "Verdana,Arial,Helvetica"    	
 if(!s[12]) s[12] = 1
 if(!s[13]) s[13] = 1
 if(!s[14]) s[14] = 200
 if(!s[16]) s[16] = 0
 if(!s[17]) s[17] = 0
 if(!s[18]) s[18] = 10
 if(!s[19]) s[19] = 10
 hs = s[11].toLowerCase() 
 if(ps==20001108){
 if(s[2]) ab="STYLE='border:"+s[16]+"px solid"+" "+s[2]+"'"
 ap="STYLE='padding:"+s[17]+"px "+s[17]+"px "+s[17]+"px "+s[17]+"px'"}
 var closeLink=(hs=="sticky")? "<TD ALIGN='right'><FONT SIZE='"+s[12]+"' FACE='"+s[8]+"'><A HREF='javascript:void(0)' ONCLICK='stickyhide()' STYLE='text-decoration:none;color:"+s[0]+"'><B>Close</B></A></FONT></TD>":""
 var title=(t[0]||hs=="sticky")? "<TABLE WIDTH='100%' BORDER='0' CELLPADDING='0' CELLSPACING='0'><TR><TD "+titTxtAli+"><FONT SIZE='"+s[12]+"' FACE='"+s[8]+"' "+titCol+"><B>"+t[0]+"</B></FONT></TD>"+closeLink+"</TR></TABLE>" : ""
 var txt="<TABLE "+titBgImg+" "+ab+" WIDTH='"+s[14]+"' BORDER='0' CELLPADDING='"+s[16]+"' CELLSPACING='0' "+titBgCol+" ><TR><TD>"+title+"<TABLE WIDTH='100%' "+add_height+" BORDER='0' CELLPADDING='"+s[17]+"' CELLSPACING='0' "+txtBgCol+" "+txtBgImg+"><TR><TD "+txtTxtAli+" "+ap+" VALIGN='top'><FONT SIZE='"+s[13]+"' FACE='"+s[9]+"' "+txtCol +">"+t[1]+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"
 if(nn4) {
 	with(eval(obj+"document")) {
   open()
   write(txt)
   close()
 	}
 }
 else eval(obj+"innerHTML=txt")
 tbody = {
 	Pos:s[10].toLowerCase(), 
 	Xpos:s[18],
 	Ypos:s[19], 
 	Transition:s[20],
 	Duration:s[21], 
 	Alpha:s[22],
 	ShadowType:s[23].toLowerCase(),
 	ShadowColor:s[24],
 	Width:parseInt(eval(obj+iw)+3+sbw)
 }
 if(ie4) { 
 	TipLayer.style.width = s[14]
   tbody.Width = s[14]
 }
 Count=0	
 move=1
  }
 }
}

 

html-en

<a href="#romantikken" target="_self" onMouseOver="stm(Text[1],Style[7])" onMouseOut="htm()">Romantikken</a><br>

 

Bare å lese og lære :)

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...