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

Thread: I'm looking for Script

  1. #1
    Join Date
    Dec 2008
    Posts
    2

    I'm looking for Script

    Hi All

    In fact, I'm looking for Script found in one of the sites.


    The script is by making Nic Wolfe but I did not find this script on this site.

    The script works on this site

    http://www.emaarhealthcare.com/


    Thank you for help

    Regards

  2. #2
    Join Date
    Feb 2008
    Posts
    1,666
    You talking about this script? WHat do you want to know about it?
    HTML Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Idea by:  Nic Wolfe -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=350,left = 430,top = 337');");
    }
    // End -->
    </script>

  3. #3
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    Quote Originally Posted by MrNobody View Post
    You talking about this script? WHat do you want to know about it?
    HTML Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Idea by:  Nic Wolfe -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=350,left = 430,top = 337');");
    }
    // End -->
    </script>
    That script is really inefficient.
    Code:
    popUp(URL) {
      id = (new Date()).getTime();
      window["page" + id] = window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=350,left = 430,top = 337');
    }
    Tada, script shortened and improved, how cool is that
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  4. #4
    Join Date
    Dec 2008
    Posts
    2
    I do not have sufficient experience in Java, but I want to make a site like this


    http://www.emaarhealthcare.com/

    Is this script enough to do that.

    Thank you for your cooperation.

  5. #5
    Join Date
    Feb 2008
    Posts
    1,666
    All that script does is to open a popup window.

  6. #6
    Join Date
    May 2004
    Location
    FL
    Posts
    3,453
    For the record, the original script mentioned above was created by our Popup Window Generator. However scragar, I do like yours also. I'm going to add it over at JavaScript Source.
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill

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