 |
 |
need some code help....
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jan 2001
Location: England
Status:
Offline
|
|
Hello All
I have been trying to figure out some code I got from a "view source" and as there is no contact address on this particular site, I cannot ask him how he did it. ( http://www.tappy.info/showPicsForADay.php?dateID=2)
Quite simply, I'd like to modify what he has done, which is to have a number of small thumbnail images (40x40 pixels) on the left, and when you click on them, the main image is displayed on the right, which is a box 495x372 pixels.
Within the code there is the use of "displayPic.php" and "iFrame", neither of which I seem to have any bearing on what is displayed in this right hand larger image box......
I cannot see any evidence of JavaScript at work here, but I wonder if some of the code has been hidden. Perhaps it is Flash code.
It all looks quite simple on the browser, so I put it to anyone who has got this far......can you explain this code, or pass on a simpler version which creates the same effect?
Many, many thanks to all who put forward suggestions.

|
|
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
you'd need his/her actual php script. the one that's doing all the work. you only see html, because php is parsing the code, and outputting html
you could hard-code a similar page, and have the larger images as layers, which are hidden/shown, depending on which thumbnail is active
|
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
|
|
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Dec 2002
Status:
Offline
|
|
Do you just want to do the effect? Not the PHP part of it? If so, you just put in an iframe, label it with and id, and then have the thumbnails be links with target=[insert iframeID].
|
|
Travis Sanderson
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jan 2001
Location: England
Status:
Offline
|
|
I'm new to php, and have stuck to html and JavaScript when writing pages for the web so far.
Just after the simple effect of what was produced....
I'll fathom out that code, Arkham_c' as well as investigating how an iframe with an id might work -thanks redJag, (fancy posting an example?!).
This might keep me busy for a while!
Thank you all for comments, I'll keep you posted...
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
Hi Daisy,
Why can't you use a simple frameset?
The result would be almost indistinguishable!
|
|
Piot
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Dec 2002
Status:
Offline
|
|
<A href="http://slashdot.org" target="myFrame">Go to slashdot!</A><br><br>
<iframe src="http://www.google.com/" name="myFrame" width=400 height=300 frameborder=1>
</iframe>
code:
<A href="http://slashdot.org" target="myFrame">Go to slashdot!</A><br><br>
<iframe src="http://www.google.com/" name="myFrame" width=400 height=300 frameborder=1>
</iframe>
|
|
Travis Sanderson
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|