Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as text by gabri ( 17 years ago )
<html>     
      
        <SCRIPT language="JavaScript" type="text/javascript">
                var count = 0;         
                var lastSelected = -1;                                        
                count = count + 1;                                            
                image = "/cgi-bin/test.cgi"                                   
                function get_image() {                                        
                        alert("hello");                                       
                        document.images["cmd_frame"].src = image + "?" + count;        
                        setTimeout('turn_off_image()', 1000);                 
                        
                }                                                             
                function turn_off_image() {                                   
                        alert("bye");
                        document.images["cmd_frame"].src = "";                
                }       
                
function selectBtn(ele){                                                      
    var imgEle = ele.firstChild;                                              
    if(lastSelected != -1){
        lastSelected.style.border = "1px solid #404040";                      
    }   
    imgEle.style.border = "1px solid white";                                  
    lastSelected = imgEle;
}   

        </SCRIPT>                                                             
        
<body leftmargin=0 topmargin=0 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<img id="cmd_frame" src="" style="display: none;" name="cmd_frame">
<td colspan=1 width=100% valign=top halign=left>                              
<a id="rot_left" onclick="javascript: get_image(this.id);  selectBtn(this);" ><img name="rot_left_img" id="rot_left_img" src="rotate_left_sml.gif" width=20></a>
</body>
</html>

 

Revise this Paste

Your Name: Code Language: