 |
| Javascript How-To Ask your "How do I do this with Javascript?" questions here. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

March 16th, 2004, 11:15 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
Quote:
|
quote:It allows you to use dress up Jesus with some cool looking suits using DHTML drag and drop. Examine the source to learn how it is done.
|
If you can learn much looking at that source I salute you. Macromedia auto-generated code is always so ugly looking :)
--
Joe
|
|

March 16th, 2004, 11:17 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Well, I must admit the code looks a bit messy.
But it's fun anyway, isn't it? ;)
In addition to all this, maybe you'll find something useful at the http://www.dressupgames.com/ site. In the celebs section ( http://www.dressupgames.com/celebs.html) you can Madonna or the Hansons for example, to see a slighter simpler version of drag and drop. Maybe some of them may be of help.
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

March 16th, 2004, 01:54 PM
|
|
Authorized User
|
|
Join Date: Mar 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello ppl,
anyone have any suggetstion on how to make my site work with the doll and pictures - the links dont help much because they written with meta-code which i dont know how to use
any other suggestion??
plz help me solve this problem
|
|

March 16th, 2004, 05:44 PM
|
|
Authorized User
|
|
Join Date: Mar 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
True, thats almost the kind of code that i need
except i want it to be conected with an onclick function
which handles two different iframes!
//twinkle
|
|

March 16th, 2004, 06:27 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Connected? Can you explain this to me?
----------
---Snib---
----------
<><
|
|

March 16th, 2004, 07:42 PM
|
|
Authorized User
|
|
Join Date: Mar 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
well what i mean is that i want the code to handle
an onclick function (the chosen picture appears in the other ifram by clicking on the image, no need to drag it)
the part that u have to drag the image is not what i want because the user will choose the image from another iframe
//twinkle
|
|

March 16th, 2004, 09:31 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Hmm... perhaps something like this:
index.html
<iframe src=left.html /><iframe id=right src=right.html />
left.html
<img src=imageone.png onclick="right.src=this.src">
<img src=imagetwo.png onclick="right.src=this.src">
right.html doesn't need anything in it.
Let me know if this works,
----------
---Snib---
----------
<><
|
|

March 17th, 2004, 03:52 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Twinkle,
What do you mean with meta-code? The Madonna example uses just JavaScript, as far as I can see:
http://www.dressupgames2.com/madonna/index.html
The source includes a link to http://www.dynamicdrive.com/ if you want to see the full source code and an explanation.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

March 17th, 2004, 06:00 AM
|
|
Authorized User
|
|
Join Date: Mar 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Snib - when i try out ur given code i get the error that
right in left.html is undefined
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Frames |
Simmy73 |
ASP.NET 2.0 Basics |
1 |
May 26th, 2006 07:26 AM |
| Frames |
ricardo_s |
HTML Code Clinic |
1 |
April 27th, 2006 02:37 PM |
| FRAMES |
twinkle |
Javascript |
2 |
March 30th, 2004 02:04 AM |
| i frames and all that |
Adam H-W |
HTML Code Clinic |
2 |
November 5th, 2003 12:24 PM |
|
 |