How to create a href to a variable ip?

Discussion in 'HTML' started by Mike Fieger, Dec 7, 2003.

  1. Mike Fieger

    Mike Fieger Guest

    Hi!

    I have some preview-images on my homepage and I'd like to create a link to
    my ftp-server so one can download the picture in its full size when he
    clicks on the preview-picture.

    current code looks like the following:

    <table datasrc=#pics>
    <tr>
    <td>
    <a href=span datafld=fullsize>
    <img src=span datafld=preview></img>
    </a>
    </td>
    <td>
    ftp://62.47.xx.xx//<span datafld=fullsize>
    </td>
    </tr>
    </table>

    Now the question:
    How can I modify the hyperlink in the first column to be like the text in
    the second column?
    If I put the text 'ftp://62.47...' in front of the 'span ...' (like in the
    second column) it is ignored.

    Can anybody help me with that?

    thx!

    Mike
    Mike Fieger, Dec 7, 2003
    #1
    1. Advertising

  2. Mike Fieger

    brucie Guest

    in post <news:3fd3afe7$0$19008$>
    Mike Fieger said:


    > I have some preview-images on my homepage and I'd like to create a link to
    > my ftp-server so one can download the picture in its full size when he
    > clicks on the preview-picture.
    >
    > <table datasrc=#pics>


    only IE supports data binding. use server side scripting.


    --
    brucie
    08/December/2003 09:40:28 am kilo
    brucie, Dec 7, 2003
    #2
    1. Advertising

  3. Mike Fieger

    Richard Guest

    Mike! wrote:

    > Hi!


    > I have some preview-images on my homepage and I'd like to create a link
    > to my ftp-server so one can download the picture in its full size when he
    > clicks on the preview-picture.


    > current code looks like the following:


    > <table datasrc=#pics>
    > <tr>
    > <td>
    > <a href=span datafld=fullsize>
    > <img src=span datafld=preview></img>
    > </a>
    > </td>
    > <td>
    > ftp://62.47.xx.xx//<span datafld=fullsize>
    > </td>
    > </tr>
    > </table>


    > Now the question:
    > How can I modify the hyperlink in the first column to be like the text in
    > the second column?
    > If I put the text 'ftp://62.47...' in front of the 'span ...' (like in
    > the second column) it is ignored.


    > Can anybody help me with that?


    > thx!


    > Mike



    it would be ftp://62.62.62.62/ not with the // as you show it unless that's
    a typo here.

    not sure, but a php script might be able to allow use of something like
    ftp://62.62.var1.var2/
    but doing so would require the ip's to be absolutely static.
    Richard, Dec 8, 2003
    #3
  4. Mike Fieger

    Mike Fieger Guest

    "Richard" <anonymous@127.000> schrieb im Newsbeitrag
    news:...
    > Mike! wrote:
    >
    > > Hi!

    >
    > > I have some preview-images on my homepage and I'd like to create a link
    > > to my ftp-server so one can download the picture in its full size when

    he
    > > clicks on the preview-picture.

    >
    > > current code looks like the following:

    >
    > > <table datasrc=#pics>
    > > <tr>
    > > <td>
    > > <a href=span datafld=fullsize>
    > > <img src=span datafld=preview></img>
    > > </a>
    > > </td>
    > > <td>
    > > ftp://62.47.xx.xx//<span datafld=fullsize>
    > > </td>
    > > </tr>
    > > </table>

    >
    > > Now the question:
    > > How can I modify the hyperlink in the first column to be like the text

    in
    > > the second column?
    > > If I put the text 'ftp://62.47...' in front of the 'span ...' (like in
    > > the second column) it is ignored.

    >
    > > Can anybody help me with that?

    >
    > > thx!

    >
    > > Mike

    >
    >
    > it would be ftp://62.62.62.62/ not with the // as you show it unless

    that's
    > a typo here.
    >
    > not sure, but a php script might be able to allow use of something like
    > ftp://62.62.var1.var2/
    > but doing so would require the ip's to be absolutely static.
    >
    >

    ----------------------------------------------------------------------------
    ---

    Hi!

    Even if I use a static ip (such as 62.62.62.62 for example) it does not
    work.
    If I try to change the link from

    <td>
    <a href=span datafld=fullsize>
    <img src=span datafld=preview></img>
    </a>
    </td>
    <td>
    ftp://62.62.62.62//<span datafld=fullsize>
    </td>

    to

    <td>
    <a href=ftp://62.62.62.62//<span datafld=fullsize>
    <img src=span datafld=preview></img>
    </a>
    </td>
    <td>
    ftp://62.62.62.62//<span datafld=fullsize>
    </td>

    it is just ignored! Why is that so?
    Mike Fieger, Dec 8, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. CRON
    Replies:
    24
    Views:
    200,660
    Adrienne Boswell
    Jun 20, 2006
  2. Soren Vejrum
    Replies:
    4
    Views:
    569
    Lasse Reichstein Nielsen
    Jul 5, 2003
  3. saiho.yuen
    Replies:
    3
    Views:
    418
    kaeli
    Sep 14, 2004
  4. Replies:
    2
    Views:
    457
  5. Vincent van Beveren

    BASE HREF and A HREF="#" onclick="..."

    Vincent van Beveren, Jul 6, 2006, in forum: Javascript
    Replies:
    2
    Views:
    310
    Vincent van Beveren
    Jul 6, 2006
Loading...

Share This Page