'batch' img src switching in link.. rel.. href.. or userstylesheet?

Discussion in 'HTML' started by QuasiAnon@anon.com, Sep 16, 2005.

  1. Guest

    With my web pages, I hope to email just the HTML and CSS files, zipped in small attachment. But i've edited my HTMLs using
    local stored img files. Yet the emailed HTMLs must link to imgs on a host site.
    my final goal is to be able to switch easily between sets of img
    1st set on hard disk and
    2nd set img on imagehost site.

    Decent solution could be: editing the link rel css lines in HTML header to switch between different css (or other external files?)
    If that's possible, I envision something like these two choices:
    local disk:
    <link title="whatever" rel="stylesheet" href="../wherever/whatever_again.css" type="text/css" />
    webhost for images:
    <link title="whatever" rel="stylesheet" href="http://www.whoever-imagehost.com/whatever_v2.css" type="text/css" />

    is it possible to mass-specify something like this? (url or path to img src's)
    if there's info on the web, i must not be googling the appropriate wording.

    -----
    i saw a desription of using background img style used as a backup for img src, but i think trying to match the positioning of the
    img could be become complicated, especially since i have float left and right in various divs.

    omitting conjecture based on that, to keep post shorter...
    tia...
     
    , Sep 16, 2005
    #1
    1. Advertisements

  2. windandwaves Guest

    wrote:
    > With my web pages, I hope to email just the HTML and CSS files,
    > zipped in small attachment. But i've edited my HTMLs using
    > local stored img files. Yet the emailed HTMLs must link to imgs on a
    > host site.
    > my final goal is to be able to switch easily between sets of img
    > 1st set on hard disk and
    > 2nd set img on imagehost site.
    >
    > Decent solution could be: editing the link rel css lines in HTML
    > header to switch between different css (or other external files?) If
    > that's possible, I envision something like these two choices:
    > local disk:
    > <link title="whatever" rel="stylesheet"
    > href="../wherever/whatever_again.css" type="text/css" />
    > webhost for images:
    > <link title="whatever" rel="stylesheet"
    > href="http://www.whoever-imagehost.com/whatever_v2.css"
    > type="text/css" />
    >
    > is it possible to mass-specify something like this? (url or path to


    try :
    <head>
    <base href="http://www.whoever-imagehost.com/">
    </head>
     
    windandwaves, Sep 16, 2005
    #2
    1. Advertisements

  3. Guest

    "windandwaves" <> in news:NRpWe.11998$:

    > try :
    > <head>
    > <base href="http://www.whoever-imagehost.com/">
    > </head>


    thank you very much.
    even though i've been googling this topic for a couple days (inbetween lots of other stuff) i only now (1) just found a little
    base href url info at netscape (1998)
    i still haven;t verified whether base href is ok with xhtml (googling that aspect gives nothing readily decipherable), but i'll try
    *first* with a small page, run validation, etc.

    now i only have to confirm whether the imagehost uses consistent server domain for all images. IOW, if actual image locations
    are
    "24.host.net/uno.jpg"
    and
    "655.host.net/dos.jpg"
    in same HTML file, then that imagehost will be a problem for the base href solution

    or hunt for a host that uses consistent domain. so, problem appears essentially solved.
    thanks, again.


    --
    1) (strictly speaking, 2 hours ago, but i since haven't been on the net until now)
     
    , Sep 16, 2005
    #3
  4. windandwaves Guest

    wrote:
    > "windandwaves" <> in
    > news:NRpWe.11998$:
    >
    >> try :
    >> <head>
    >> <base href="http://www.whoever-imagehost.com/">
    >> </head>

    >
    > thank you very much.
    > even though i've been googling this topic for a couple days
    > (inbetween lots of other stuff) i only now (1) just found a little
    > base href url info at netscape (1998)
    > i still haven;t verified whether base href is ok with xhtml
    > (googling that aspect gives nothing readily decipherable), but i'll
    > try *first* with a small page, run validation, etc.
    >
    > now i only have to confirm whether the imagehost uses consistent
    > server domain for all images. IOW, if actual image locations
    > are
    > "24.host.net/uno.jpg"
    > and
    > "655.host.net/dos.jpg"
    > in same HTML file, then that imagehost will be a problem for the base
    > href solution
    >
    > or hunt for a host that uses consistent domain. so, problem appears
    > essentially solved.
    > thanks, again.


    Try www.w3.org

    Cheers
     
    windandwaves, Sep 16, 2005
    #4
    1. Advertisements

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. Islam Elkhayat

    Insert <link rel="stylesheet"....>

    Islam Elkhayat, Nov 28, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    4,447
    =?Utf-8?B?V2ViTWF0cml4?=
    Nov 29, 2004
  2. Steve Richter

    <txt src= ...> equivalent of <img src= ...>

    Steve Richter, Feb 8, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    2,594
    Laurent Bugnion
    Feb 9, 2006
  3. Emil Christopher Melar

    App_Theme and <link rel="stylesheet" .. /> output problems.

    Emil Christopher Melar, Mar 3, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,821
    Emil Christopher Melar
    Mar 3, 2006
  4. Leeza

    CSS Navigation Rel Link

    Leeza, Jul 28, 2003, in forum: HTML
    Replies:
    5
    Views:
    739
    E-Guy
    Aug 14, 2003
  5. pheadxdll
    Replies:
    16
    Views:
    5,540
    Neredbojias
    Jun 6, 2007
  6. Soren Vejrum
    Replies:
    4
    Views:
    1,007
    Lasse Reichstein Nielsen
    Jul 5, 2003
  7. Brandon Hoppe

    HELP: Changing ilayer src from a href link...

    Brandon Hoppe, Feb 25, 2004, in forum: Javascript
    Replies:
    14
    Views:
    370
    Brandon Hoppe
    Mar 1, 2004
  8. fatted
    Replies:
    4
    Views:
    302
    fatted
    Aug 21, 2003
Loading...