# Javascript question

**URL:** <https://forum.kirupa.com/t/javascript-question/256434>\
**Category:** Uncategorized\
**Created:** [April 3, 2008, 12:21am UTC](https://forum.kirupa.com/t/javascript-question/256434 "2008-04-03T00:21:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![irishcash33](https://avatars.discourse-cdn.com/v4/letter/i/958977/32.png) [@irishcash33](https://forum.kirupa.com/u/irishcash33)\
**Post date:** [April 3, 2008, 12:21am UTC](https://forum.kirupa.com/t/javascript-question/256434/1 "2008-04-03T00:21:16Z")

</div>

I have this javascript. I would like for it to be on rollover, not click. And is there a way to make the large images not open in a new window. So when rolled over the thumbnails, the large image will float up witha description…  
Thanks

```auto
<script language="JavaScript">
<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function slideshow_DoFSCommand(command, args) {
    var slideshowObj = isInternetExplorer ? document.all.slideshow : document.slideshow;

    if(command == 'openWindow'){
        var qs = args.split('&'); // split the arguments
        var w = qs[1].split('=')[1]; // width
        var h = (1 * qs[2].split('=')[1]) + 19; // height, I add 19 pixels to the height for the menu bar

        // modify this line if you have another template displaying your big view

        // qs[0]: big image src
        // qs[1]: big image width
        // qs[2]: big image height

        // cmswin=window.open("big.cfm?lan=1&" + args,"cmswin","width="+w+",height="+h+",scrollbars=no,top=200,left=300,resizable=no");
        cmswin=window.open(qs[0].split("=")[1],"cmswin","width="+w+",height="+h+",scrollbars=no,top=200,left=300,resizable=no");

        window.cmswin.focus();
    }
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
    document.write('<script language=\"VBScript\"\>
');
    document.write('On Error Resume Next
');
    document.write('Sub slideshow_FSCommand(ByVal command, ByVal args)
');
    document.write(' Call slideshow_DoFSCommand(command, args)
');
    document.write('End Sub
');
    document.write('</script\>
');
}
//-->
</script>
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="slideshow" width="100%" height="140" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="slideshow.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffffff" />
<embed src="slideshow.swf" quality="high" scale="noscale" salign="lt" bgcolor="#ffffff" width="100%" height="140" swLiveConnect=true id="slideshow" name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

```
