Does anybody have any ideas?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erik

    Does anybody have any ideas?

    I have a bunch of thumb nails on my site that open up a jpg in a new
    window if you click on it. I would like to know if there is a way that
    I can make it so that if you click on a particular thumb nail that the
    link that is associated with it will open up in a pop up that is 700
    X500. I know how to do this by defining each link (thumb nail) but
    since I have about 100 thumb nail links that would be too much work.
    Is there something that I can put into the <head> that will make ALL
    my links in the body open up in a pop up?

    The page I want to do this with is at

    The thumb nail frame.

    All the best
    Erik
    Sweden
  • Chris Crandell

    #2
    Re: Does anybody have any ideas?

    Erik <straightduckle g@hotmail.com> wrote in message
    news:b7c695d2.0 309150234.2e0d8 da@posting.goog le.com...[color=blue]
    > I have a bunch of thumb nails on my site that open up a jpg in a new
    > window if you click on it. I would like to know if there is a way that
    > I can make it so that if you click on a particular thumb nail that the
    > link that is associated with it will open up in a pop up that is 700
    > X500. I know how to do this by defining each link (thumb nail) but
    > since I have about 100 thumb nail links that would be too much work.
    > Is there something that I can put into the <head> that will make ALL
    > my links in the body open up in a pop up?
    >
    > The page I want to do this with is at
    > www.eriksworld.org
    > The thumb nail frame.
    >
    > All the best
    > Erik
    > Sweden[/color]


    The following can be improved on or done differently, but
    it is one possibility...

    <HTML>
    <HEAD>
    <TITLE>POPUP PHOTOS</TITLE>
    </HEAD>

    <SCRIPT LANGUAGE=JAVASC RIPT>
    <!--hide script from old browsers
    var win1=null;

    function newwin(pname, palt)
    {
    win1 = window.open( '', '',

    'toolbar=no,loc ation=yes,scrol lbars=no,status =no,resizable=n o,width=233,hei g
    ht=300,location =no');
    win1.document.w riteln( "<IMG SRC='" + pname + "' width=233 height=300
    alt='" + palt + "' >");
    }
    // end hiding script from old browsers -->
    </SCRIPT>

    <BODY>
    <img src="tn_photo.j pg" alt="tn alt text" onClick="newwin ('big_photo.jpg ',
    'alt text');" />
    </BODY>
    </HTML>



    Comment

    • George M Jempty

      #3
      Re: Does anybody have any ideas?

      Erik wrote:
      [color=blue]
      > <SNIP>[/color]

      Yes, my idea is come up with a more descriptive subject title

      Comment

      • DU

        #4
        Re: Does anybody have any ideas?

        Erik wrote:[color=blue]
        > I have a bunch of thumb nails on my site that open up a jpg in a new
        > window if you click on it. I would like to know if there is a way that
        > I can make it so that if you click on a particular thumb nail that the
        > link that is associated with it will open up in a pop up that is 700
        > X500. I know how to do this by defining each link (thumb nail) but
        > since I have about 100 thumb nail links that would be too much work.
        > Is there something that I can put into the <head> that will make ALL
        > my links in the body open up in a pop up?
        >
        > The page I want to do this with is at
        > www.eriksworld.org
        > The thumb nail frame.
        >
        > All the best
        > Erik
        > Sweden[/color]

        My idea is to tell people to write descriptive, meaningful but short
        subject line so that if someone ever search in the newsgroup archives
        for some ideas on some explicitly defined subject line, then it will be
        a lot more easier for him and others as well.

        DU
        --
        Javascript and Browser bugs:

        - Resources, help and tips for Netscape 7.x users and Composer
        - Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x


        Comment

        • Ivo

          #5
          Re: Does anybody have any ideas?

          straightduckleg @hotmail.com (Erik) wrote in message news:<b7c695d2. 0309150234.2e0d 8da@posting.goo gle.com>...[color=blue]
          > I have a bunch of thumb nails on my site that open up a jpg in ...
          > www.eriksworld.org
          > The thumb nail frame.
          >[/color]
          Yes, like has been said before: better subject lines. I tried not to
          be pissed off immediately and loaded your page. However, you have
          disabled my contextmenu. How do you expect help if we can't even see
          your code???
          Like has been said before: anti-rightclick scripts are *not necessary*
          for people that never right-click, and are *annoying* and nothing but
          annoying for people that do. You see, I have a marvellous 'restore
          right-click' bookmarklet, that even works in frames:
          javascript:for( i=0;i<document. frames.length;i ++)with(documen t.frames[i]){void(document .onmousedown='r eturn%20true'); void(document.o ncontextmenu='r eturn%20true'); void(document.o nmouseup='retur n%20true');void (document.body. onmousedown='re turn%20true');v oid(document.bo dy.oncontextmen u='return%20tru e');void(docume nt.body.onmouse up='return%20tr ue');}

          but it only works if all frames are from the same domain, which is not
          the case with your pages. That 's where I stopped. I hope you read up
          on window.open method meanwhile.
          HTH
          Ivo

          Comment

          Working...