Ich möchte nur bei einen Teil einer Seite daß die Links nicht unterstrichen sind, ich habe dies gefunden aber alle Links auf der Seite sind dann nicht unterstrichen, ist es auch möglich daß nur ein Teil den ich wünsche nicht unterstrichen ist?
[code:1:dc232d49c7]<style type="text/css">
<!--
a:link {color:#black;text-decoration:none;}
a:visited {color:#black;text-decoration:none;}
a:active {color:black;text-decoration:none;}
a:hover {color:#black;text-decoration:none;}
//-->
</style>[/code:1:dc232d49c7]
Dann würde ich gerne diese Mausverfolgung verwenden, was muß ich genau an diesem Script verändern muß damit es auch mit einer anderen Datei funktioniert außer "alien" da ja meine Datei einen anderen Namen hat, habe wohl gefunden wo ich die verschiedenen Datei Namen ändern muß aber das sind soviele "alien" bezeichnungen und ich weiß nich was ich alles ändern muß damit es korrekt funktioniert, würde mich sehr freun über eure Hilfe.
[code:1:dc232d49c7]
var Ver4=parseInt(navigator.appVersion.charAt( 0))>=4
var IE=navigator.appName.indexOf("Microsoft&q uot;)!=-1
var al, imagesrc, ex=-32, ey=-32, x0=-32, y0=-32
function BewegeAlien()
{ // Neue Position des Alien berechnen
if (Math.abs(ex-x0)>=10) { x0+=Math.floor((ex-x0)*0.1) }
else if (ex!=x0) { x0+=Math.abs(ex-x0)/(ex-x0) }
if (Math.abs(ey-y0)>=10) { y0+=Math.floor((ey-y0)*0.1) }
else if (ey!=y0) { y0+=Math.abs(ey-y0)/(ey-y0) }
// entsprechende Grafik in Bezug zur Maus-Position waehlen
imagesrc=""
if ( (ex<x0) && ( (x0-ex) > Math.abs(y0-ey)/2 ) )
{ imagesrc="temporal/plush6.gif"
if ( (x0-ex) < Math.abs(y0-ey)*2 )
{ if (ey<y0) imagesrc="temporal/plush6.gif"
if (ey>y0) imagesrc="temporal/plush6.gif"
}
}
if ( (ex>x0) && ( (ex-x0) > Math.abs(y0-ey)/2) )
{ imagesrc="temporal/plush6.gif"
if ( (ex-x0) < Math.abs(y0-ey)*2 )
{ if (ey<y0) imagesrc="temporal/plush6.gif"
if (ey>y0) imagesrc="temporal/plush6.gif"
}
}
if (imagesrc=="")
{ if (ey<y0) imagesrc="temporal/plush6.gif"
if (ey>y0) imagesrc="temporal/plush6.gif"
if ((ex==x0)&&(ey==y0)) imagesrc="temporal/plush6.gif"
}
// Grafik und Position setzen
if (Ver4)
{ if (!IE)
{ document.AlienLayer.document.images.alien.src=imag esrc }
else document.all.AlienLayer.document.images.alien.src= imagesrc
}
al.left=x0-32
al.top=y0
setTimeout("BewegeAlien();", 100)
}
function MeinMausEvent(e)
{ // Position des Maus-Cursors ermitteln
if (Ver4)
{ if (!IE)
{ ex=e.pageX
ey=e.pageY }
else
{ ex=event.clientX + document.body.scrollLeft
ey=event.clientY + document.body.scrollTop }
}
}
function ScriptSetup()
{ // Alle Alien-Grafiken laden
isIm = (document.images) ? 1 : 0
if (isIm)
{ arImLoad = new Array
('plush6','plush6','plush6','plush6','plush 6',
'plush6','plush6','plush6','plush6')
arImList = new Array ()
for (counter in arImLoad)
{ arImList[counter] = new Image()
arImList[counter].src = arImLoad[counter] + '.gif'
}
}
// Globale Variablen setzen und Maus-Event initialisieren
if (Ver4)
{ if (!IE)
{ al=document.AlienLayer
document.captureEvents(Event.MOUSEMOVE)
}
else
{ al=document.all.AlienLayer.style }
document.onmousemove = MeinMausEvent
BewegeAlien()
}
}
function Copyright()
{ window.focus()
alert("Let me skate and enjoy the site about me...") }
function ZeigeAlien()
{ // Setzen der Block-Level Container zur Anzeige der Grafiken
if(Ver4)
{ s ='<DIV STYLE="visibility:hidden"></DIV>'
s+='<DIV ID="AlienLayer" STYLE="position:absolute; '
s+='top:-32; left:-32; width:32; height:32">'
s+='<A HREF="javascript:Copyright();&quo t;>'
s+='<IMG NAME="alien" SRC="plush6.gif" border=0>'
s+='</A></DIV>'
document.writeln(s)
}
}
window.onload = ScriptSetup
ZeigeAlien()[/code:1:dc232d49c7]
fm-g.de: QT in Code-Tag gapackt
[code:1:dc232d49c7]<style type="text/css">
<!--
a:link {color:#black;text-decoration:none;}
a:visited {color:#black;text-decoration:none;}
a:active {color:black;text-decoration:none;}
a:hover {color:#black;text-decoration:none;}
//-->
</style>[/code:1:dc232d49c7]
Dann würde ich gerne diese Mausverfolgung verwenden, was muß ich genau an diesem Script verändern muß damit es auch mit einer anderen Datei funktioniert außer "alien" da ja meine Datei einen anderen Namen hat, habe wohl gefunden wo ich die verschiedenen Datei Namen ändern muß aber das sind soviele "alien" bezeichnungen und ich weiß nich was ich alles ändern muß damit es korrekt funktioniert, würde mich sehr freun über eure Hilfe.
[code:1:dc232d49c7]
var Ver4=parseInt(navigator.appVersion.charAt( 0))>=4
var IE=navigator.appName.indexOf("Microsoft&q uot;)!=-1
var al, imagesrc, ex=-32, ey=-32, x0=-32, y0=-32
function BewegeAlien()
{ // Neue Position des Alien berechnen
if (Math.abs(ex-x0)>=10) { x0+=Math.floor((ex-x0)*0.1) }
else if (ex!=x0) { x0+=Math.abs(ex-x0)/(ex-x0) }
if (Math.abs(ey-y0)>=10) { y0+=Math.floor((ey-y0)*0.1) }
else if (ey!=y0) { y0+=Math.abs(ey-y0)/(ey-y0) }
// entsprechende Grafik in Bezug zur Maus-Position waehlen
imagesrc=""
if ( (ex<x0) && ( (x0-ex) > Math.abs(y0-ey)/2 ) )
{ imagesrc="temporal/plush6.gif"
if ( (x0-ex) < Math.abs(y0-ey)*2 )
{ if (ey<y0) imagesrc="temporal/plush6.gif"
if (ey>y0) imagesrc="temporal/plush6.gif"
}
}
if ( (ex>x0) && ( (ex-x0) > Math.abs(y0-ey)/2) )
{ imagesrc="temporal/plush6.gif"
if ( (ex-x0) < Math.abs(y0-ey)*2 )
{ if (ey<y0) imagesrc="temporal/plush6.gif"
if (ey>y0) imagesrc="temporal/plush6.gif"
}
}
if (imagesrc=="")
{ if (ey<y0) imagesrc="temporal/plush6.gif"
if (ey>y0) imagesrc="temporal/plush6.gif"
if ((ex==x0)&&(ey==y0)) imagesrc="temporal/plush6.gif"
}
// Grafik und Position setzen
if (Ver4)
{ if (!IE)
{ document.AlienLayer.document.images.alien.src=imag esrc }
else document.all.AlienLayer.document.images.alien.src= imagesrc
}
al.left=x0-32
al.top=y0
setTimeout("BewegeAlien();", 100)
}
function MeinMausEvent(e)
{ // Position des Maus-Cursors ermitteln
if (Ver4)
{ if (!IE)
{ ex=e.pageX
ey=e.pageY }
else
{ ex=event.clientX + document.body.scrollLeft
ey=event.clientY + document.body.scrollTop }
}
}
function ScriptSetup()
{ // Alle Alien-Grafiken laden
isIm = (document.images) ? 1 : 0
if (isIm)
{ arImLoad = new Array
('plush6','plush6','plush6','plush6','plush 6',
'plush6','plush6','plush6','plush6')
arImList = new Array ()
for (counter in arImLoad)
{ arImList[counter] = new Image()
arImList[counter].src = arImLoad[counter] + '.gif'
}
}
// Globale Variablen setzen und Maus-Event initialisieren
if (Ver4)
{ if (!IE)
{ al=document.AlienLayer
document.captureEvents(Event.MOUSEMOVE)
}
else
{ al=document.all.AlienLayer.style }
document.onmousemove = MeinMausEvent
BewegeAlien()
}
}
function Copyright()
{ window.focus()
alert("Let me skate and enjoy the site about me...") }
function ZeigeAlien()
{ // Setzen der Block-Level Container zur Anzeige der Grafiken
if(Ver4)
{ s ='<DIV STYLE="visibility:hidden"></DIV>'
s+='<DIV ID="AlienLayer" STYLE="position:absolute; '
s+='top:-32; left:-32; width:32; height:32">'
s+='<A HREF="javascript:Copyright();&quo t;>'
s+='<IMG NAME="alien" SRC="plush6.gif" border=0>'
s+='</A></DIV>'
document.writeln(s)
}
}
window.onload = ScriptSetup
ZeigeAlien()[/code:1:dc232d49c7]
fm-g.de: QT in Code-Tag gapackt
Kommentar