Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #21 (permalink)  
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
Reply With Quote
  #22 (permalink)  
Old March 16th, 2004, 11:17 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #23 (permalink)  
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

Reply With Quote
  #24 (permalink)  
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---
----------

<><
Reply With Quote
  #25 (permalink)  
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

Reply With Quote
  #26 (permalink)  
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---
----------

<><
Reply With Quote
  #27 (permalink)  
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

Reply With Quote
  #28 (permalink)  
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---
----------

<><
Reply With Quote
  #29 (permalink)  
Old March 17th, 2004, 03:52 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #30 (permalink)  
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.