dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: netscape problem

  1. #1
    Join Date
    Dec 2002
    Posts
    8

    netscape problem

    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

  2. #2
    Join Date
    Dec 2002
    Location
    Switzerland
    Posts
    428
    You used the onDBLClick function, NS4 does not support this feature. You must change it to an onMouseUp or onMouseDown event!

  3. #3
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    37
    I answered the other points over in the Javascript forum.
    Last edited by blufive; 12-26-2002 at 03:56 PM.

  4. #4
    Join Date
    Dec 2002
    Location
    Lake Havasu City, Arizona
    Posts
    527
    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 &lt; and &gt; 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.

  5. #5
    Join Date
    Nov 2002
    Posts
    984
    For reference blufive's answers is found here

    http://forums.webdeveloper.com/showt...&threadid=1418

  6. #6
    Join Date
    Dec 2002
    Posts
    8

    Thanks again

    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!

  7. #7
    Join Date
    Nov 2002
    Posts
    4,473
    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/m...rs.htm#1119971

  8. #8
    Join Date
    Dec 2002
    Location
    Switzerland
    Posts
    428

    Yes, it does. You just have to "stand on your head" to make it work.

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles