Popup -> Mouseover

Discussion in 'JavaScript' started by easterwolf, May 26, 2008.

  1. #1
    Has anyone had to convert a Java Popup window to a mouseover tooltip? I want to change the behavior of the popup so that instead of ckicking to popup, the larger image will display on mouseover.

                    
    <SCRIPT TYPE="text/javascript">
    <!--function popup(){
                        var popurl="<?php echo $item['LargeImage']['URL']; ?>" 
                        winpops = window.open("","imgWindow","width=<?php echo $item['LargeImage']['Width'] + 30; ?>,height=<?php echo $item['LargeImage']['Height'] + 30; ?>") 
                        winpops.document.write("<html><head><title><?php echo $this->site['SiteName']; ?></title></head><body onload='this.focus();' onblur='window.close();'><img alt='' src='<?php echo $item['LargeImage']['URL']; ?>' width='<?php echo $item['LargeImage']['Width']; ?>' height='<?php echo $item['LargeImage']['Height']; ?>'></body></html>")
                        winpops.document.close();
                    } //-->
    </SCRIPT>
    
    Code (markup):
    If anyone know of any resources I could get this info or has the code, please help. I tryed googling it already btw but I can't find the exact solution...:(
     
    easterwolf, May 26, 2008 IP
  2. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #2
    greatlogix, May 27, 2008 IP