I am NOT a great web designer. I dont want to be. I tinker enough to make it look good though. Here's my problem. I do a lot of work at home and I do not have internet on my computer. I host my images on a web server. I would like to be able to develop on that home computer. Is there a way to make my computer think some folder with my pictures in it is www.whatever.com/images? I know I can just change the code to look for the file , but I do these for auctions on ebay, and I do an awful lot of them and the potential for error would be high. I get around it by just not seeing the pictures when I develop it and testing it later. Very time consuming.
Is there anything i can do? I'm more interested in if it can even be done now, than actually doing it.
Oh, I have downloded windows web servers but the closest i could get was to assign an ip address to a location on my drive. I dont want that.
Thank you geniouses!
Ken
Comments
That's all possible and if your connected on the net when you're developing you can just use the URL to get the images you don't have on your harddisk at home.
If you have an image on your home computer just use this:
[code]
[/code]
If you have an image an a remote computer just use this:
[code]
[/code]
Hope this helps you out.
--=][tReShR][=--
when it's on my home computer, even though it is just a folder on that same computer simulating my images dir on my web site.
Thanks!
Ken
: If I understand you right you want to develop your website on your home computer and use images in your offline website.
: That's all possible and if your connected on the net when you're developing you can just use the URL to get the images you don't have on your harddisk at home.
:
: If you have an image on your home computer just use this:
: [code]
:
: [/code]
:
: If you have an image an a remote computer just use this:
: [code]
:
: [/code]
:
: Hope this helps you out.
:
: --=][tReShR][=--
:
:
The first would be to write a program that changes the image URLs for you, and changes them back when you've tested.
The second, and probably easier (if less interesting and popular) way would be to use a Javascript to loop through all the images, and change the domain part of the src to the location on your hard drive. If you embed it using you only have to add or remove one line to get it to work.
Something like
[code]window.onload = function () {
for (i = 0; i < document.images.length; i++)
document.images[i].src.replace('www.domain.com','images');
}[/code]
Should do it, then save that as a .js (or anything else, but .js for preference) file and include it in the page with
: It's perfectly possible, in at least two ways.
:
: The first would be to write a program that changes the image URLs for you, and changes them back when you've tested.
:
: The second, and probably easier (if less interesting and popular) way would be to use a Javascript to loop through all the images, and change the domain part of the src to the location on your hard drive. If you embed it using you only have to add or remove one line to get it to work.
:
: Something like
: [code]window.onload = function () {
: for (i = 0; i < document.images.length; i++)
: document.images[i].src.replace('www.domain.com','images');
: }[/code]
: Should do it, then save that as a .js (or anything else, but .js for preference) file and include it in the page with
:
The other way (modify the file with a script + re-modify it afterwards, or possibly just save a backup and go back to that) would probably have to be written in C (I don't know any interpreted languages which come with Windows), which I don't know, and which you'd need a compiler for anyway.
:
: Is there anything i can do? I'm more interested in if it can even be done now, than actually doing it.
:
: Oh, I have downloded windows web servers but the closest i could get was to assign an ip address to a location on my drive. I dont want that.
:
You're almost there, you just need to trick Windows into thinking that the domain name www.whatever.com resolves to that IP address. If you look in your Windows directory (or maybe it's windows system, do a search) then you'll find a file that is named "HOSTS" (no extension). This lets you set up name ==> IP mappings. Open it up, and on a new line add:-
www.whatever.com 123.123.123.123
I've done tricks like this before and got it to work, though it was a while ago...anyway, hope it helps.
Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
:
: The first would be to write a program that changes the image URLs for you, and changes them back when you've tested.
:
: The second, and probably easier (if less interesting and popular) way would be to use a Javascript to loop through all the images, and change the domain part of the src to the location on your hard drive. If you embed it using you only have to add or remove one line to get it to work.
:
: Something like
: [code]window.onload = function () {
: for (i = 0; i < document.images.length; i++)
: document.images[i].src.replace('www.domain.com','images');
: }[/code]
: Should do it, then save that as a .js (or anything else, but .js for preference) file and include it in the page with
:
Bleh...JavaScript sucks. :-S
If I remmeber correctly, HTML has a tag that lets you set up a prefix for files loaded from that page. Something like:-
If you wanted a change-one-line-on-the-page solution, that'd be more reliable that the JavaScript.
Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
[link=http://theteakpatio.com]adirondack chairs[/link]
[link=http://www.dramaholics.com]dramaholics[/link]
[link=http://www.dramaholics.com]korean drama[/link]