Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
 
Old March 16th, 2004, 11:15 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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
 
Old March 16th, 2004, 11:17 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old March 16th, 2004, 01:54 PM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old March 16th, 2004, 04:19 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

http://javascript.internet.com/page-...ag-n-drop.html

Is this the kind of thing you're looking for?

----------
---Snib---
----------

<><
 
Old March 16th, 2004, 05:44 PM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old March 16th, 2004, 06:27 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Connected? Can you explain this to me?

----------
---Snib---
----------

<><
 
Old March 16th, 2004, 07:42 PM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old March 16th, 2004, 09:31 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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---
----------

<><
 
Old March 17th, 2004, 03:52 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old March 17th, 2004, 06:00 AM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.