Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-29-2012, 10:33 AM   PM User | #1
pateman90
New to the CF scene

 
Join Date: Aug 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
pateman90 is an unknown quantity at this point
.imagecube on click

Hello,

i want to change my image in the .imagecube way but i want it be done via a click so that on the other face i can have the 9 image puzzle game.

is this possible and if so how to do it?
pateman90 is offline   Reply With Quote
Old 08-29-2012, 11:39 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,615
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
I suppose you are talking about the jQuery Image Cube plugin? I had to do an internet search in order to find out what you are talking about. Please be a little more elaborate in future when asking a question. This includes posting your code or a link to show what you’ve got so far.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 08-29-2012, 11:53 AM   PM User | #3
pateman90
New to the CF scene

 
Join Date: Aug 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
pateman90 is an unknown quantity at this point
More Detail

Using the Jquery Plugin

.imagecube

how can i swap between the images sides by clicking on the image.

this is the code from http://keith-wood.name/imageCube.html:

Code:
<div id="defaultCube" style="width: 200px; height: 150px;"> 
    <img src="uluru.jpg" alt="Uluru" title="Uluru"/> 
    <img src="islands.jpg" alt="Islands"title="Islands"/> 
    <img src="gorge.jpg" alt="Gorge" title="Gorge"/> 
</div>

Code:
$('#defaultCube').imagecube(); 
 
$('#stopCube').toggle(function() { 
        $(this).text('Start'); 
        $('#defaultCube').imagecube('stop'); 
    }, function() { 
        $(this).text('Stop'); 
        $('#defaultCube').imagecube('start'); 
    } 
); 
 
$('#removeCube').toggle(function() { 
        $(this).text('Re-attach'); 
        $('#defaultCube').imagecube('destroy'); 
    }, 
    function() { 
        $(this).text('Remove'); 
        $('#defaultCube').imagecube(); 
    } 
);
pateman90 is offline   Reply With Quote
Reply

Bookmarks

Tags
.imagecube, jquery, puzzle game

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:40 AM.


Advertisement
Log in to turn off these ads.