Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Use mouse to drag and move image within a div
Old 12-08-2008, 09:00 AM Use mouse to drag and move image within a div
Junior Talker

Posts: 3
Trades: 0
Hello

I am new to this type of javascript functionality and am just starting to look at jquery, prototype etc. So any help or guidance would be much appreciated.

I am looking for the best way to implement image zoom functionality and am keen to know which way would be the best. Which js library is best, how many divs, css etc.

What i want to accomplish is what asos currently does e.g.

http://www.asos.com/Lee/Lee-Pete-B-L...ashedBlue&sh=0

when you click on the product image it shows a more zoomed in image in the same div and allows you to drag it arround the div.

i have managed to replicate the following example using JqZoom currently:

Zoom popup to the right

But i am really trying to get the other accomplished but unable on where to start as i cannot do this using jqzoom.

Any help would be greatly appreciated.

Kind regards

Chris
cwayman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-09-2008, 04:57 AM Re: Use mouse to drag and move image within a div
Junior Talker

Posts: 3
Trades: 0
Hello

Sorry if I may have been a bit vague.

I currently have a div showing a larger image when i mouse over my original image but my div showing my larger image is to the right of my original image.

I am trying to get it so when i roll over my original image the larger image is displayed on top of the original image with the div the same size as the original div but with overflow: hidden;

My current HTML is

<div id="imageContainer">

<div class="standardImage">
<img src="_assets/images/products/image1Small.jpg"
jqimg="_assets/images/products/image1Zoom.jpg" alt="Zoom Image"/>
</div>

</div>

I have tried to position the div that appears to show the larger image over the div that hold the original image but as soon as my mouse is about to move in to the larger div which is half overlayed at this point it vanishes.

Any guidance would be appreciated.
cwayman is offline
Reply With Quote
View Public Profile
 
Old 12-09-2008, 04:00 PM Re: Use mouse to drag and move image within a div
Junior Talker

Posts: 1
Trades: 0
how can i put this script on vbulletin script?
joker.nyc is offline
Reply With Quote
View Public Profile
 
Old 12-10-2008, 07:04 AM Re: Use mouse to drag and move image within a div
Junior Talker

Posts: 3
Trades: 0
Sorry joker.nyc i cannot help you there.

Does anyone have any advice on what i am trying to achieve?

Thanks
cwayman is offline
Reply With Quote
View Public Profile
 
Old 12-13-2008, 09:01 AM Re: Use mouse to drag and move image within a div
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
Try this, http://www.defusion.org.uk/code/java...scriptaculous/
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Use mouse to drag and move image within a div
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.06667 seconds with 12 queries