User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,687 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,207 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 362 | Replies: 2
Closed Thread
Join Date: Jun 2008
Posts: 7
Reputation: chickenlord500 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
chickenlord500 chickenlord500 is offline Offline
Newbie Poster

im a wits end on img swap with onClick

  #1  
Jul 1st, 2008
I am trying to create this code for my website but i am having trouble per when you click the button for corrosponding with correct image it does not on call take that image and show it as my main one i can not get my img swap to work and have been trying for hours and



<html>
<body bgcolor= "#950606">

<body>
<h3>first try at pic swap</h3>
<form Name= theForm>

<hr>
<table border = 1>
<tr>
<td colspan= 3>
<center>
<img name = imgDisplay
src= "C:\html\images/flamechick.jpg"
height = 100 width = 100>
</center>
</tr>

<tr>
<td><img src= "C:\html/flamechick.jpg"
height = 50 width = 50
name = "imgFlamechick">
</td>
<td><img src= "C:\html/battle.jpg"
height = 50 width = 50
name = "imgBattle">
</td>
<td><img src= "C:\html/meandsnake.jpg"
height = 50 width = 50
name = "imgMeandsnake">
</td>
</tr>
<tr>
<td><input type="button"
value="Flamechick"
onClick= "showFlamechick()">
</td>

<td><input type="button"
value="Battle"
onClick= "showBattle()">
</td>

<td><input type="button"
value="Me and Snake"
onClick= "showMeandsnake()">
</td>

</tr>

</table>
</form>
</body>
</html>
AddThis Social Bookmark Button
 
Join Date: May 2007
Location: USA
Posts: 2,599
Reputation: Ezzaral is just really nice Ezzaral is just really nice Ezzaral is just really nice Ezzaral is just really nice Ezzaral is just really nice 
Rep Power: 11
Solved Threads: 257
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Posting Maven

Re: im a wits end on img swap with onClick

  #2  
Jul 1st, 2008
You really must be at your wits end.. because you posted this in the Java programming forum instead of the Javascript forum which is clear over here: http://www.daniweb.com/forums/forum117.html
 
Join Date: Jun 2006
Location: India
Posts: 6,774
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 23
Solved Threads: 330
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Rebellion Revamped

Re: im a wits end on img swap with onClick

  #3  
Jul 2nd, 2008
Duplicate thread, closed.
"I don't accept change. I don't deserve to live."

"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
 
Closed Thread

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 2:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC