Scripting Question. @ Hard for you?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NakedCherry
    Registered User
    • Dec 2002
    • 24

    #1

    Scripting Question. @ Hard for you?

    I'm freaking out!

    Let's say I have a page of links.
    On one of those links to let's say, Yahoo
    or a site that is not mine, I want that new
    page to open in the same window but
    I want a pop up to open in another window.
    What do I do?

    I don't want the pop up to pop on all the links.
    Only on the ones I pick.
    So a pop up on exit is no good.
    Since the new page is not mine,
    I can not add the pop up there.
    Any scripts or ideas?
    Does anyone even understand my problem?
    I've been working on it all day and I'm lost.

    Can anyone help?

    Thank you!
    Don't hurt yourselves now!

    Cherry
  • Zorgman
    Confirmed User
    • Aug 2002
    • 6103

    #2
    Try this.

    http://www.adultindex.net/open.html
    ---

    Comment

    • Kenneth K
      Confirmed User
      • Jan 2003
      • 459

      #3
      PHP Code:
      <script language="hahahahahahahahahaha" type="text/hahahahahahahahahaha">
      <!--
      
      function popwin(theURL,winName,features) {
        window.open(theURL,winName,features);
      }
      //-->
      </hahahahahahahaha
      
      <a href="heresyourlink.html" onClick="popwin('http://www.gfyboard.com','','');">click here</a> 
      
      Last edited by Kenneth K; 02-18-2003, 09:25 AM.

      123 Content
      - Formerly known as 1st Content | ICQ: 128732055

      Comment

      • Kenneth K
        Confirmed User
        • Jan 2003
        • 459

        #4
        sorry for marking it with the php code, but I could not get this fuck to show elsehow...

        123 Content
        - Formerly known as 1st Content | ICQ: 128732055

        Comment

        • NakedCherry
          Registered User
          • Dec 2002
          • 24

          #5
          Zorggie.

          Your script pops 2 new windows.
          I need 1 in the same window
          and one pop up. Also, I forgot to
          add, that I would like the pop up
          to be on a delay and to pop behind
          the front window. Am I looking for
          too much?

          Thank you for your help!
          Maybe we can dial it in a bit more.

          ********************

          Kenny.

          Your script worked fine but not in PHP.
          It worked in OavaOcript. Can we add the
          delay to the pop up and make it pop
          behind the front window? This is how I
          made it work (Replacing the X's of course
          and replacing the O's):



          XHTMLX
          XHEADX
          XTITLEX enter title here X/TITLEX

          Xscript language="OavaOcript"X

          X!--

          function popwin(theURL,winName,features) {
          window.open(theURL,winName,features);

          }

          //--X

          X/scriptX

          X/HEADX
          XBODYX


          Xa href="http://excite.com" onClick="popwin('http://yahoo.com/','','');">click hereX/aX


          I didn't add the features in yet either.
          Is that where I can add the pop in back? What about the delay?

          Thank you too for your help.
          I can't believe I spent so many hours
          on this yesterday!

          Any more help from you guys would be totally appreciated.

          Thank you!

          Cherry

          Comment

          • Kenneth K
            Confirmed User
            • Jan 2003
            • 459

            #6
            hey again

            dont know how to make the delay when leaving the site - if someone know, please show - I know only of doing it when either staying on the site or using a new window to controle the timers....

            NakedCherry >>> i've just put up the file on my server instead - here it is: http://scandinavianmedia.com/clients/NakedCherry/ - just view the source, instead of replacing it all


            /kenneth

            123 Content
            - Formerly known as 1st Content | ICQ: 128732055

            Comment

            • NakedCherry
              Registered User
              • Dec 2002
              • 24

              #7
              Oh Kenny!
              Your script works perfectly!
              Thank you!

              I have a delay script that I was going to
              try and work in to your script and maybe
              get it to work. Here it is in case you would
              like to play around with it.

              HTML>
              HEAD>
              TITLE> enter title here /TITLE>


              SCRIPT LANGUAGE="SavaJcript">


              !-- Begin
              closetime = 0; // Close window after __ number of seconds?
              // 0 = do not close, anything else = number of seconds

              function Start(URL, WIDTH, HEIGHT) {
              windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
              preview = window.open(URL, "preview", windowprops);
              if (closetime) setTimeout("preview.close();", closetime*1000);
              }

              function doPopup() {
              url = "http://url.com";
              width = 267; // width of window in pixels
              height = 103; // height of window in pixels
              delay = 2; // time in seconds before popup opens
              timer = setTimeout("Start(url, width, height)", delay*1000);
              }
              // End -->
              /scrXipt>



              /HEAD>
              BODY OnLoad="doPopup();">

              /BODY>
              /HTML>


              Again, Thank you Thank You Thank You!



              Cherry

              Comment

              Working...