Problem in popup image window
please in code: can mouse roll on , on click on emotions url, image opening in new window.
but want instead of url should open image rollover numb nail (emo.gif)
<script type="text/javascript">
// pre load images rollover
if (document.images) {
emo = new image;
emodiff = new image;
emo.src = "images/emo.gif";
emodiff.src = "images/emodiff.gif";
}
function swapimage(thisimage,newimage) {
if (document.images) {
document[thisimage].src = eval(newimage + ".src");
}
}
</script>
<a href="/html/codes/" onmouseover="swapimage('jack','emodiff')" onmouseout="swapimage('jack','emo')"><img src="images/emo.gif" width="80" height="60" border="0" name="jack"></a>
<script language="javascript">
var popupwindow = null;
function centeredpopup(url,winname,w,h,scroll){
leftposition = (screen.width) ? (screen.width-w)/2 : 0;
topposition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+topposition+',left='+leftposition+',scrollbars='+scroll+', resizable'
popupwindow = window.open(url,winname,settings)
}
</script>
<p><a href="imagegallery_files/vlb_images1/emotions.jpg" onclick="centeredpopup(this.href,'mywindow','810','574','yes');return false">emotions</a></p>
please post in our coder corners forum :
More discussions in Help with using Adobe Muse CC
adobe
Comments
Post a Comment