Really need some help

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

    Really need some help

    I have a page with about 100 thumb nails that each shows a small page.
    I would like to have a global command in the page with all the thumbs
    that would make it so that when I push on the thumb nail on that page
    the link is show in a pop up.

    Something similar to this would be nice but as a global command as it
    is not feasible to rewrite all the links.

    <a href='http://eriksworld.alte rvista.org/pages/ghost_jpg.php'
    target='_blank' onClick='window .open("http://eriksworld.alte rvista.org/pages/ghost_jpg.php", "","width=700,h eight=600,resiz able=no,scrollb ars=no");
    return false;'>Next</a>

    All the best Erik
    Sweden
  • Janne Raiskila

    #2
    Re: Really need some help

    I hope i understrood correctly...

    <script language=javasc ript>
    <!--
    function openPopUp(image ) {
    popup = window.open(ima ge,"","width=50 0, height=500");
    popup.setTitle( "Image preview");
    }
    -->
    </script>

    <a href="image.jpg " onClick="openPo pUp(image = this.href); return
    false;">link1</a>
    <a href="image2.jp g" onClick="openPo pUp(image = this.href); return
    false;">link2</a>

    something like that

    --
    Janne



    "Erik" <straightduckle g@hotmail.com> kirjoitti viestissä
    news:b7c695d2.0 309142157.113ec 738@posting.goo gle.com...[color=blue]
    > I have a page with about 100 thumb nails that each shows a small page.
    > I would like to have a global command in the page with all the thumbs
    > that would make it so that when I push on the thumb nail on that page
    > the link is show in a pop up.
    >
    > Something similar to this would be nice but as a global command as it
    > is not feasible to rewrite all the links.
    >
    > <a href='http://eriksworld.alte rvista.org/pages/ghost_jpg.php'
    > target='_blank'[/color]
    onClick='window .open("http://eriksworld.alte rvista.org/pages/ghost_jpg.php",
    "","width=700,h eight=600,resiz able=no,scrollb ars=no");[color=blue]
    > return false;'>Next</a>
    >
    > All the best Erik
    > Sweden[/color]


    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: Really need some help

      "Janne Raiskila" <ol.en@par.as > writes:
      [color=blue]
      > I hope i understrood correctly...
      >
      > <script language=javasc ript>[/color]

      This should be
      <script type="text/javascript">
      The type attribute is required in HTML 4.
      [color=blue]
      > <!--[/color]

      HTML comments are not necessary in Javascript.
      [color=blue]
      > function openPopUp(image ) {
      > popup = window.open(ima ge,"","width=50 0, height=500");[/color]

      I would make popup a local variable, i.e., start with "var popup =".

      There should be no spaces in the configuation string. Some browsers
      refuse to work with that.
      [color=blue]
      > popup.setTitle( "Image preview");[/color]

      I don't believe window objects have a setTitle method. The page in the
      new window has (most likely) not been loaded yet when this statement
      is executed, so functions on the page will not be loaded yet.
      [color=blue]
      > <a href="image.jpg " onClick="openPo pUp(image = this.href); return[/color]

      Drop "image = ", unless you need to put the href into a global
      variable on this page.
      [color=blue]
      > something like that[/color]

      Something like it :)

      --
      Lasse Reichstein Nielsen - lrn@hotpop.com
      Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      • Erik

        #4
        Re: Really need some help

        I was not too concise with my question. What I am asking is how I make
        all the links on my page open up in a pop-up with out having to change
        each of the links I have on my page.


        All the best Erik



        --
        There are only 10 kinds of people. The ones who understand binary and
        the ones who dont.

        Comment

        Working...