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 456,608 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,456 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: 1208 | Replies: 4
Reply
Join Date: Oct 2007
Posts: 19
Reputation: tryphy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tryphy's Avatar
tryphy tryphy is offline Offline
Newbie Poster

Question Javascript- On selection appear image..

  #1  
Nov 9th, 2007
Hi all,
I have 2 option button, lets say A and B, When A is Chosen, B must get deactivated.
And also when A is Chosen an image appears above the option button...
I am not that good in Javascript..
The choise of selection can be anything either option button, or link or just a button..
How can it be done ?
Thanks for your help...

Regards
Tryphy..
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Location: Brisbane, Australia
Posts: 227
Reputation: sillyboy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 13
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Posting Whiz in Training

Re: Javascript- On selection appear image..

  #2  
Nov 9th, 2007
Ok, so it is a good idea to try some javascript tutorials to get the hang of it first. Javascript can be a pain to debug from my experiences. A few things that you may find helpful to help with your tasks:
- onclick() *event
- visibility or display *attribute
- disabled *attribute

If you need more help post some code, and somebody can have a further look.
Reply With Quote  
Join Date: Oct 2007
Posts: 19
Reputation: tryphy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tryphy's Avatar
tryphy tryphy is offline Offline
Newbie Poster

Re: Javascript- On selection appear image..

  #3  
Nov 9th, 2007
Hey...
thnaks for the comments...
I am working through it....

I also hav another doubt of click and drag image....
its like i have and image , when its drag and dropped in a table, it must get snapped to it...
How do i snap the images to the table..?
Ur help will be much appreciated..
thanks...
Reply With Quote  
Join Date: Mar 2007
Location: Brisbane, Australia
Posts: 227
Reputation: sillyboy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 13
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Posting Whiz in Training

Re: Javascript- On selection appear image..

  #4  
Nov 10th, 2007
I am not entirely sure what you mean by the drag / drop of the image. Is this while you are designing the page or do you actually have a feature on the website to allow drag / dropping?
Reply With Quote  
Join Date: Oct 2007
Posts: 19
Reputation: tryphy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tryphy's Avatar
tryphy tryphy is offline Offline
Newbie Poster

Re: Javascript- On selection appear image..

  #5  
Nov 11th, 2007
HI,
Its not in the website...
its for a game..
Drag and drop the elements in the table...once this is done and press enter, any the particular action take place...
eg: drag and image to a table , once the image is fixed and enter or submit is clicked, another image displays by the side..
Reply With Quote  
Reply

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

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

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