hotspot problem
seh
- javascript
kann mir jemand hierbei helfen?
Ich möchte den window.status wie beschrieben ändern - mit "normalen" links funktioniert dies - allerdings nicht mit hotspots (area shape).
vielleicht hat jemand einen idee!
...
<script>
function hidestatus(){
window.status='test'
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>
<SCRIPT>
/*Rollover effect on different image script-
*/
function changeimage(towhat,url){
if (document.images){
document.images.targetimage.src=towhat.src
gotolink=url
}
}
function warp(){
window.location=gotolink
}
</SCRIPT>
<SCRIPT language=JavaScript1.1>
var myimages=new Array()
var gotolink="#"
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("images/men.jpg","images/kon.jpg","images/hom.jpg","images/lei.jpg","images/ref.jpg")
</SCRIPT>
...
<map name="targetimageMap">
<area shape="circle" coords="45,77,40" href="home.htm" onmouseout=changeimage(myimages[0],this.href) onmouseover=changeimage(myimages[2],this.href)>
...
</map>
Hallo,
vielleicht hat jemand einen idee!
...
<script>
function hidestatus(){
window.status='test'
return true
}
setTimeout("window.status='test'",0);
return true;
evtl. auch erst den Statustext einer Variable zuweisen:
var stattext="test";
setTimeout("window.status=stattext",0);
return true;
MfG, Thomas