57 users online (1 members and 56 guests)  


  Results 1 to 4 of 4

Related

  1. Passing value from parent window to child window    Forum: Javascript Forum
    Replies: 0
  2. Java SCript Window not opening in laptop    Forum: Javascript Forum
    Replies: 1
  3. Replies: 1
  4. Launching cgi script in New Browser Window    Forum: CGI Perl Forum
    Replies: 2
  1. #1
    skadrummer01's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    36

    Hey guys, Need help on Pop up window script

    I put this code in the head section of our site...
    Code:
    <script language="JavaScript">
    <!--
    function doublej()
    
    {
    window.open("index2.html","index2","fullscreen=no,toolbar=no,location=center,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=780,height=688");
    }
    //-->
    </script>
    And this into the body for when you click on the DESIGNATED IMAGE, IT WILL OPEN THE WINDOW IN A NEW WINDOW...
    Code:
    <a href="javascript:doublej()" onmouseover="fade_in()" onmouseout="fade_out()">
    <img name="ent.JPG" border=0 src="ent.JPG"></a>
    For some reason this code works on a lot of peoples computers and the window does pop up, but, but on a few other peoples computers they are getting SCRIPT ERRORS!!!

    Our website you can view everything at is...

    www.freewebs.com/toetappingscoundrels/index.html

    Tell me whats going on, and how I can fix this?

    Thank you guys!
    Last edited by HTML; 01-20-2005 at 07:55 AM.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi,

    What do the script errors say?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    skadrummer01's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    36
    Hey quietdean!

    Seems to me the errors are coming from internet explorer users ( I use msn ) but the script error is as follows...

    - Internet Explorer Script Error -
    - An error has occured in this script on this page
    LINE: 38
    Char: 1
    Error: Object Expected
    Code: 0
    URL: http://www.freewebs.com/toetappingscoundrels/index.html

    Do You Want To Continue Running Scripts On This Page?

    YES NO

    _-------------------------------_

    That would be the error they are getting. I duno what it is though

    Seems that the site itself is working, the pop up window and everything. Just that they are getting script errors

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Object expected means it cannot find a function or object that you have named.

    Code:
     onmouseover="fade_in()" onmouseout="fade_out()">
    I can't see any functions named fade anything, so remove those references and you should be gold.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread