Click to See Complete Forum and Search --> : netscape problem
DSilpa
12-26-2002, 08:58 AM
Can anyone tell me why the javascript I have on my page (to enlarge an image upon double clicking) will not work with Netscape? Is there a way to make this work on Netscape?
Also the text in the table on the right (specifically #2) is messed up in Netscape. Any ideas?
Thanks.
My site:
http://perso.wanadoo.fr/david.silpa/paris.htm
You used the onDBLClick function, NS4 does not support this feature. You must change it to an onMouseUp or onMouseDown event!
blufive
12-26-2002, 02:51 PM
I answered the other points over in the Javascript forum.
jdavia
12-26-2002, 05:45 PM
You used the onDBLClick function, NS4 does not support this feature. You must
change it to an onMouseUp or onMouseDown event![QUOTE]
That is correct but the script is not compatible with Netscape. But unfortunately a script may be hard to find that is.
There is a script that will work in both Browsers clicking the image will load the larger image on a new html page, clicking that image will bring you back.
Put this in the head of the page that has all the images.
<HEAD>
<script language="JavaScript1.2">
<!-- Begin
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, menu=yes, scrollbars=auto');
}
// End -->
</script>
>/HEAD>
And this in the body. This is for one image, add as many as you need.
<a href="javascript:void(0);"
onMouseOver="window.status='CA Snow'; return true"
onMouseOut="window.status=' '; return true"
onClick="fullScreen('New-IMAGE.html');">
<img src="YOUR-IMAGE.jpg" width="75" height="50" alt="Your-image" title="CA Snow" border=0 align="left"></a>
Snow in California by Joe<br>
<i><font size="-1">Make comments here
</font></i>
For each image you need to call back the the page with all the images like this.
<center><a href="javascript:window.close('YOUR.html');"><img src="YOIUR-IMAGE.jpg" width="736" height="484" alt="your-image
(Click picture to return.)" border=0></a></center>
Subsitute < and > for < and > using find/replace or copy it and paste it as the source in a html doc. View it and copy it again from there to use.
As for tables in Netscape---- You need to put closing tags in the first table and it will come right. You have some work ahead. :mad:
Stefan
12-27-2002, 12:22 AM
For reference blufive's answers is found here
http://forums.webdeveloper.com/showthread.php?s=&threadid=1418
DSilpa
12-27-2002, 04:30 AM
Thanks again to all of you that replied. You guys really help the process of building web pages. It would be too frustrating to do without this help!
gil davis
12-27-2002, 07:52 AM
Originally posted by swon
You used the onDBLClick function, NS4 does not support this feature.
Yes, it does. You just have to "stand on your head" to make it work.
http://developer.netscape.com/docs/manuals/js/client/jsref/handlers.htm#1119971
that's true but not for all tags, and above he had the img tag with a onDblClick event within, and that will not works on NS4