|
||
|
|
|||||||
| Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis. |
|
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).
|
![]() |
|
|
Thread Tools |
If you want to use Javascript, then first of all you need to stop the submit button from refreshing the page (by adding a 'return false' statement, I think).
Next, you need to give your dynamic elements identifiers so that Javascript can access them easily. For this: <img src='" + part1 + part2 + part3a + "'> Give it an id, say: <img id='image1' src='" + part1 + part2 + part3a + "'> And 'image2' for the other image. Add the following to your readtext function: document.images["image1"].src = part1 + part2 + part3a; document.images["image2"].src = part1 + part2 + part3b; This probably isn't fully cross-browser compatible, but at least it works on the latest versions of Firefox and IE. And if you want to update the captions on the page, you'll have to do something similar: "<b><span id='caption1'>" + part2 + '</span> - MACD </b><br>' And use innerHTML or any equivalent function. (By the way, you're passing this.form into readtext but not using it, so might as well eliminate the parameter.) Most amazing jew boots |