Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-16-2009, 11:50 AM   #1 (permalink)
Contributing Member
 
Jason's Avatar
 
Join Date: 05-17-04
Location: London, United Kingdom
Posts: 710
iTrader: 0 / 0%
Latest Blog:
None

Jason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of lightJason is a glorious beacon of light
Send a message via MSN to Jason
Simple JavaScript help please - image embedding

Hi all, I hope this finds you all well!

I have a website that will need to handle about 20+ images per page, but for the sake of a clean layout I want them arranged so the user scrolls through a couple of tiny galleries instead of being presented with a long stream and having work their way through.

Code:
<script> function changeImage(filename) { document.mainimage.src = filename; } </script> <p align="center"> <img name="mainimage" src="DSCF2715.JPG"></p> <p align="center">Images: <a href="javascript:changeImage('DSCF2715.JPG')">1</a> <a href="javascript:changeImage('DSCF0605.JPG')">2</a> <a href="javascript:changeImage('image3.jpg')">3</a> <a href="javascript:changeImage('image4.jpg')">4</a> <a href="javascript:changeImage('image5.jpg')">5</a></p>
That said, I've found an image click-through gallery script here... but it only seems to work once per page; any more times and those below the top click-through fail to work. How can this be manipulated in a way to be used several times loading different, pre-defined images?

ONLINE DEMONSTRATION: http://i-code.co.uk/javascript/imageviewer.php

Your help on this matter will be greatly appreciated!

Take care,

Jason

Last edited by Jason; 06-16-2009 at 11:56 AM..
Jason is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple javascript troubleshoot chuco61 Coding Forum 14 08-08-2008 12:25 PM
Embedding Quicktime video with an image capture Gr8Writer Coding Forum 1 07-09-2007 08:10 PM
Simple javascript solution??? searchbliss Coding Forum 5 06-27-2007 04:52 PM
JS: Simple Javascript But please help Calisonder Coding Forum 1 04-17-2007 08:48 PM
Simple JavaScript question I, Brian Coding Forum 16 01-07-2005 11:27 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 09:10 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.