/    Sign up×
Community /Pin to ProfileBookmark

Help with the wz_dragdrop script

To begin with, hello to u all…

Basicaly I’m [I]trying[/I] to get into DHTML and Javascript but sometimes it just gets too much – I’m a graphic designer and code ignorant (not unusual heh) but still trying…

I’m using Walter Zorn’s script ([URL=”http://www.walterzorn.com/scripts/wz_dragdrop.js”]http://www.walterzorn.com/scripts/wz_dragdrop.js[/URL]) to drag layers around and I would like 2 things to happen: when I mouseover a dragdrop layer, an info layer to appear AND to be able to use the SCALABLE function of the script [U]without[/U] the shift key to enlarge the image in the div, just by using an tiny image as a “hotspot” on the bottom right corner for each dragdrop layer.
[ATTACH]9439[/ATTACH]

[ATTACH]9440[/ATTACH]
This doesn’t need to be functional during the [I]drag[/I] function… just during a mouseover/hover BUT it does need to be easy to implement since it’s going to apply to many div’s.
I have managed the layer to Show/Hide by using:

[CODE]<div id=”whatever” onmouseover=”dd.elements.INFOLAYER.show();return false;” onmouseout=”dd.elements. INFOLAYER.hide();return false;”>[/CODE]

>
…but what about the scale-hotspot-function on mouseover…?????
Do I use the my_PickFunc Function, if so how??? ? ?

[upl-file uuid=6be59ad6-f54b-4742-9cfc-1774459a0fe8 size=3kB]scalesmall.jpg[/upl-file]

[upl-file uuid=f454f844-0bc4-4688-81df-12c81f8f0a76 size=5kB]scalebig.jpg[/upl-file]

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@ShaftauthorAug 15.2007 — ...am I asking too much or is it too complicated? ? ?
Copy linkTweet thisAlerts:
@Angry_Black_ManAug 16.2007 — when a question deals specifically with javascript, youre are more apt to get response. when you get into CSS and javascript, your chances of a response go down (based on my observations). and then when you go hardcore DHTML, you end up wondering why no one responded.

just my observation.
Copy linkTweet thisAlerts:
@Arty_EffemAug 16.2007 — To begin with, hello to u all...

Basicaly I'm [I]trying[/I] to get into DHTML and Javascript but sometimes it just gets too much - I'm a graphic designer and code ignorant (not unusual heh) but still trying...

I'm using Walter Zorn's script [/QUOTE]
Then have you tried asking him for what you want?
Copy linkTweet thisAlerts:
@ShaftauthorAug 16.2007 — Yes. In his words... "However, a little [I] bit[/I] of JavaScript knowledge will be required anyway, but there are simple examples on the API reference page that might help you around.On the 'Examples' page (linked from the Drag&Drop main page as well) you can find 2 different examples on how to implement 'resize handles' for drag&Drop elements."

... which means d.i.y. I did try to d.i.y. but I messed it up....

If anyone wants to see what I've done up to now tell me and I'll post a url.
×

Success!

Help @Shaft spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...