A friend recently sent me a very long code. Basically, it makes a page with an image, with the standard comic controls (first, back, next, latest - this is when you're in the middle, anyway, when you're on the first, it takes away first and back, and when you're on the latest it takes away next and latest)
However, I want to add comments to these pictures, along the bottom. I tried an experiment to see if I could change one part where it told the page what file types to look for (png, jpeg and...bmp *cringe*) to include .htm, to see if that would work, then created a file of each type with the same name as the images, so we had 001.png and 001.htm, but it came up with errors.
I'll be able to post a sample page of this later, as I haven't got access to it at the moment (at work ^^;) but does anyone know of a method I could look into to do this?
Any and all help appreciated :D
ID:183299
Aug 29 2007, 8:47 pm
|
|
In response to DarkView
|
|
This bit's a bit long. I made up a quick test page, I'll stick some demo pics in there when I get home (with Freehostia, you can't upload from an external source, only from your pc...which is mean!)
http://tangents.freehostia.com/test/test.php <?php Will that be of assistance? I would've posted it on the page, but I couldn't remember the tag for showing code ^_^; |
Adding captions shouldn't be too hard, but I can't really help you much without some more info on how the current system works.
Also, what program are you using to read the code? Notepad does the job, and a lot of people like to boast that it's all they need, but a good text editor will do wonders. With the proper editor it's a lot easier to read and follow the flow of a program.