Click here to Skip to main content
15,890,282 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Is this do-able? Sync web data with thumb drive device Pin
Marc Firth22-Apr-09 1:47
Marc Firth22-Apr-09 1:47 
GeneralRe: Is this do-able? Sync web data with thumb drive device Pin
Hypermommy22-Apr-09 6:13
Hypermommy22-Apr-09 6:13 
GeneralRe: Is this do-able? Sync web data with thumb drive device Pin
Marc Firth22-Apr-09 21:52
Marc Firth22-Apr-09 21:52 
AnswerRe: Is this do-able? Sync web data with thumb drive device Pin
led mike22-Apr-09 6:49
led mike22-Apr-09 6:49 
GeneralRe: Is this do-able? Sync web data with thumb drive device Pin
Hypermommy22-Apr-09 11:25
Hypermommy22-Apr-09 11:25 
GeneralRe: Is this do-able? Sync web data with thumb drive device Pin
SeMartens22-Apr-09 21:17
SeMartens22-Apr-09 21:17 
QuestionJavascript if/else and image display? Pin
djhankypark21-Apr-09 6:36
djhankypark21-Apr-09 6:36 
AnswerRe: Javascript if/else and image display? Pin
Marc Firth21-Apr-09 22:41
Marc Firth21-Apr-09 22:41 
Not quite sure what you are trying to do. Please could you explain a little clearer (whats on the page and whats gonna happen when it's clicked).

I presume you mean thumbnails, and a main picture which changes when the thumbnails are clicked?

you will need something like this

In your <head> section:
<script type="text/javascript">
function updateImgSrc(filepath){
var mainImage = document.getElementById('mainImage'); //the big picture
mainImage.src = filepath; //set the src of the mainImage to the variable passed in
return;
}
</script>

In your <body> section:
<img id="mainImage" src="originalPic.jpg" height="800" width="900" />


And your thumgnails:
<img src="imageOneThumbnail.jpg" height="40" width="50" onClick="updateImgSrc('imageOne.jpg');"/>


Neonlight
GeneralRe: Javascript if/else and image display? Pin
djhankypark22-Apr-09 10:36
djhankypark22-Apr-09 10:36 
GeneralRe: Javascript if/else and image display? Pin
Marc Firth22-Apr-09 22:14
Marc Firth22-Apr-09 22:14 
GeneralRe: Javascript if/else and image display? Pin
djhankypark25-Apr-09 0:26
djhankypark25-Apr-09 0:26 
GeneralRe: Javascript if/else and image display? Pin
djhankypark22-Apr-09 10:38
djhankypark22-Apr-09 10:38 
QuestionUse Javscript to check user online Pin
Member 323010721-Apr-09 0:01
Member 323010721-Apr-09 0:01 
AnswerRe: Use Javscript to check user online Pin
Marc Firth21-Apr-09 0:35
Marc Firth21-Apr-09 0:35 
GeneralRe: Use Javscript to check user online Pin
Yusuf21-Apr-09 7:57
Yusuf21-Apr-09 7:57 
GeneralRe: Use Javscript to check user online Pin
Marc Firth21-Apr-09 22:27
Marc Firth21-Apr-09 22:27 
QuestionNeed to get "Direction Map Codes" Like ... Pin
qayyom20-Apr-09 23:54
qayyom20-Apr-09 23:54 
AnswerRe: Need to get "Direction Map Codes" Like ... Pin
Marc Firth21-Apr-09 0:37
Marc Firth21-Apr-09 0:37 
QuestionRe: Need to get "Direction Map Codes" Like ... Pin
qayyom21-Apr-09 0:51
qayyom21-Apr-09 0:51 
AnswerRe: Need to get "Direction Map Codes" Like ... Pin
Marc Firth21-Apr-09 0:59
Marc Firth21-Apr-09 0:59 
GeneralRe: Need to get "Direction Map Codes" Like ... Pin
qayyom21-Apr-09 1:07
qayyom21-Apr-09 1:07 
QuestionPDF mailto link not working Pin
Jay HoffmanTE20-Apr-09 7:41
Jay HoffmanTE20-Apr-09 7:41 
AnswerRe: PDF mailto link not working Pin
Marc Firth21-Apr-09 1:05
Marc Firth21-Apr-09 1:05 
GeneralRe: PDF mailto link not working Pin
Jay HoffmanTE21-Apr-09 2:09
Jay HoffmanTE21-Apr-09 2:09 
GeneralRe: PDF mailto link not working Pin
Marc Firth21-Apr-09 2:12
Marc Firth21-Apr-09 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.