bazz
04-12-2003, 11:36 AM
Hi.
I have the need for a script which enables an image to be placed on many pages from one image file. Can I do this using JavaScript similarly to how an external .css file works?
If so, could anyone help me with the script I must follow. I would like it to work such that:
1. if the image is removed in the future, that the portion on the HTML on which it had been visible is now totally blank. No placeholders, No broken link icon.
2. if I put two images in the .js file, they appear beside each other on the HTML page with abut 1px between them.
2. The only info on the HTML page (except the class info), is the link-to-external .js file.
3. the script for every page on which it is used, is the same.
Holefully this isn't too demanding of your time. much appreciated either way.
thanks.
I've just re-read it and that sounds like I want you to do alot. really if I could get a few pointers on how to write the .js file, I could probably work out the positioning using .css?
I have the need for a script which enables an image to be placed on many pages from one image file. Can I do this using JavaScript similarly to how an external .css file works?
If so, could anyone help me with the script I must follow. I would like it to work such that:
1. if the image is removed in the future, that the portion on the HTML on which it had been visible is now totally blank. No placeholders, No broken link icon.
2. if I put two images in the .js file, they appear beside each other on the HTML page with abut 1px between them.
2. The only info on the HTML page (except the class info), is the link-to-external .js file.
3. the script for every page on which it is used, is the same.
Holefully this isn't too demanding of your time. much appreciated either way.
thanks.
I've just re-read it and that sounds like I want you to do alot. really if I could get a few pointers on how to write the .js file, I could probably work out the positioning using .css?