1. #1
    stoffer's Avatar
    Registered
    22/09/02
    Location
    Singapore
    Posts
    1,830
    iTrader
    13 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/5

    Javascript: Syntaxfout

    Deze code heb ik ergens op een of andere tutorial site gevonden:

    Code:
    function Init() {
    	var i=0;
    	while(document.links.length>i) {
    		document.links(i).style.position="";
    		document.links(i).style.height=document.links(i).style.width+0;
    		i++;
    	}
    }
    function handleevent() {
    	if(event.type=="mouseover")
    		if(event.srcElement.tagName=="A") {		
    			event.srcElement.style.filter="shadow(color=lime,enabled=1)";
    		}
    		if (event.type=="mouseout")
    			if(event.srcElement.tagName=="A") {
    				event.srcElement.style.filter="";
    			}
    		}
    		document.onmouseover=handleevent;
    		document.onmouseout=handleevent;
    		document.body.onload=Init;
    	}
    }
    </SCRIPT>
    En dit deel:
    Code:
    		document.onmouseover=handleevent;
    		document.onmouseout=handleevent;
    		document.body.onload=Init;
    Geeft een syntaxfout in IE, maar werkt wel met firefox
    Is er iemand die weet wat er aan fout is en die dit kan oplossen?
    ---
    no votes  

  2. #2
    BertG's Avatar
    Registered
    03/07/03
    Location
    Heverlee
    Posts
    512
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/0
    wat is de error van IE ?
    no votes  

  3. #3
    servi's Avatar
    Registered
    01/07/02
    Location
    Zolder
    Posts
    2,487
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    uw functie (handleevent) noemt identiek aan uw variabele (handleevent) dat geeft vodden.
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in