View Full Version : Need Help With Simple Web Page HTML Problem
Yo im trying to make a web site.
The first page is the index. It is a frameset split vertically so that i have the links always on the left side bar, and the main content in the main frame.
The links open webpages in the main frame. These webpages are made by me and they are each split into 2 frames, one main frame and one bottom frame. The bottom frame contains links to images on my HD. These then show up on the main frame of this webpage.
So when i click a link in the index side bar it opens the webpage in the main frame correctly. The bottom frame also loads on the main frame and shows all the stuff i want it to. So far so good.
When i click on the image link howveer on the bottom frame, the image loads fine on the main frame (leaving the bottom frame there)....but the background colour of the main frame changes from my set colour, to white.
This is the problem. The main frame background changes to white. This is because i think the link is to an image only, not a html page WITH an image in it.
But i dont know for sure, so i was wondering of you could give me adivice.
Cheers.
Al Khalifah
07-22-2005, 14:28
This is not the place for this.
indeed this is no place for this....
but what the hell...
the problem is indeed what you are thinking...because it is not an html file but just a picture file what the browser does is "create" a basic html file just for presentation of the picture......and those have every value set on default...and the default background colour is white ~:)
if you think this really messes with your page“s look and want to change it i see only one solution..
you create a html file that contains the image, and when you click on the image link load up the html file instead of the picture itself.....there since you actually write the html itself you can set the background colour.
if you have an editor like frontpage or similar you can do this is a couple of minutes.
*now someone close this please*
Ah but, there are many many images. Therefore, many many separate webpages.
Blodrast
07-22-2005, 20:19
soooo.... why don't you just create a bunch of simple html files which contain nothing but the code for one image ? you can script the whole thing (and the html part would be almost identical for all of them), or use whatever tools, for instance, ACDSee - and I'm sure there's many others that do that (and more).
With ACDSee, it generates all that stuff automatically, including thumbnails and what not. And ACDSee is merely an image viewer, I'm sure HTML thingies can do more sophisticated stuff.
Laridus Konivaich
07-22-2005, 20:28
You could probably use some simple javascript, with a single page that displays all of your images, when you click on the image link, but I don't know if it will work between different pages/frames. See here. (http://www.htmlgoodies.com/beyond/javascript/article.php/3470881)
Blodrast
07-22-2005, 20:42
lol, good find, PLK, but - and I sincerely hope you won't take this the wrong way - , once you start with JavaScript you may well get into trouble with different browsers...and I'm saying that because the link you posted, with the 2 buttons that do "dual image flipping", is broken in my browser ~D ~D
I guess the point is that it _might_ get a bit trickier, and you have to actually test to see if it works with all browsers you might care to use.
Again, PLK, nothing personal, but for me it was really funny to see it's broken ~D
Laridus Konivaich
07-22-2005, 21:34
Blodrast, just out of curiosity, what browser are you using, since the most popular ones all support JavaScript (unless I am horribly mistaken).
Blodrast
07-22-2005, 22:05
mine supports JavaScript, too ~;p
It is true though that I'm using Mozilla 1.0.1 (Mozilla/5.0) (linux). Don't worry, most of the time stuff works. But since I'm using quite a few browsers on various OSes, I've seen quite a lot of web pages (over time) that clearly do not display the way their creators have intended - and that's probably because they have "optimized" their site for IE... ~D
Anyway, back on topic, there should be no problems with the example you linked to. It's really simple code, and I am genuinely surprised it doesn't work properly on my browser.
And you're of course right, most do support JS. I can only think of lynx that doesn't, what with it being a text-mode browser and all ~D
Laridus Konivaich
07-22-2005, 22:30
If you need to test your website across browsers and OSs, then you may want to try this site: http://www.browsercam.com/, tehy are really trying to sell you a subscription (no, I am not affiliated ~;)), but there si fortunately a 24 hour free trial.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.