img src linking

liunx

Guest
i am looking to start experimenting with CSS to try to upgrade and compress my site. right now, everything is in straight up HTML. needless to say, my file sizes are getting out of hand. <br />
<br />
anyway, what i want to do is set up my webpages on a different free hosting account so i can play with the code and not eat up my transfer allowance. i use Frontpage only as a previewer, but every time i preview it eats up transfer. i naturally want to leave that for my visitors. however, i have all my <img src=http://www.htmlforums.com/archive/index.php/> tags written out in what i would consider to be a long form. for example, i write it out like this...<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"http://flyerflies.bravepages.com/teamlogos/montreal.gif"><br />
<br />
...for any and every image i have on my pages. but i have seen the same thing accomplished by simply writing it out this way...<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"/teamlogos/montreal.gif"><br />
<br />
i cant seem to be able to do this. i need to be able to write these tags like this so i can have all my files in a different host, but wont have to go through and alter every single URL for each image when i want to take a newly revised page code that ive created in my testbed and implement it into my website. is there some sort of a script that i have to put between the <head> tags to reference all the "partial" URL's to my host? <br />
<br />
i hope im conveying my dilemma properly. im rather uninformed when it comes to anything other than simple HTML. but im trying to fix that. :) any help would be greatly appreciated. <br />
<br />
Thanks!<br />
<br />
<br />
Nate - aka The FlyerFly<!--content-->if you have your files on a different host then you have to use the full url. no way around it. doing it like this<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"/teamlogos/montreal.gif"><br />
<br />
means it is coming from your web host, not the other one.<!--content-->no...all my files are on the same host as the page files themselves. what i intend to do is duplicate my entire webpage account at another location. thats includes uploading all of my images (which i have on my hard drive) into the secondary host so that the only difference between the two host accounts is the base URL.<br />
<br />
for instance, all of my images in the testbed account would be referenced to something like "http://testflyerflies.bravepages.com/teamlogos/montreal.gif". all my images, and all other files would be duplicated in the testbed account so i dont eat up any transfer allowance at all from my actual site as i play with the code and preview. and ultimately, im hoping that i can write the <img src> URL's the same on both accounts. <br />
<br />
<br />
Nate - aka The FlyerFly<!--content-->if you have your images all in this folder "/teamlogos/" then yes you can use this<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"/teamlogos/montreal.gif"><br />
<br />
that should work just fine. I thought you said you linked them form one site to another. why won't it work?<!--content-->i dont know why it wouldnt work...im trying to test something right now to see if its just me or the host.<br />
<br />
<br />
Nate - aka The FlyerFly<!--content-->never mind... :P its working just fine. oh man. i tried to do this a while back, and for some reason it didnt work then. maybe i had the code screwed up, but from then on i though that i was stuck having to write all the URL's out longways.<br />
<br />
thanks anywho!<br />
<br />
<br />
Nate - aka The FlyerFly<!--content-->You need the <base> HTML tag.<br />
<br />
You can use it to specify a base url or a base font.<br />
<br />
It goes in the <head> section.<!--content-->thanks giz...that tag did the trick. perfect!!<br />
<br />
<br />
The FlyerFly<!--content-->
 
Back
Top