Results 1 to 2 of 2

Thread: Image Rotation in Javascript

  1. #1
    Join Date
    Aug 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Rotation in Javascript

    Dear All,

    Help me out, i am a newbie to java script.....trying to do image rotation using java script, but not working in IE8 & Chrome 32.0.

    Getting following Error in IE8: Object Expected: Jquery is undefined.

    In Chorme 32.0 : Uncaught ReferenceError: $ is not defined (anonymous function)

    Code:
    <!DOCTYPE html>
    <html >
    <head>
    <script type= "text/javascript" src= "./jQueryRotate.js"></script>
    <style>
    #image{
    margin:100px 100px;
    }
    </style>
    
    <img src= "./logo3w.png" id= "image">
    <script type="text/javascript">
    var rotation = function (){
    $("#image").rotate({
    angle:0, 
    animateTo:360, 
    callback: rotation,
    easing: function (x,t,b,c,d){        // t: current time, b: begInnIng value, c: change In value, d: duration
    return c*(t/d)+b;
    }
    });
    }
    rotation();
    </script>
    
    </head>
    </html>
    Kindly help me out in resolving this issue.

    Thanks in Advance.

    Regards,
    RBK
    Last edited by Beverleyh; 09-05-2014 at 11:47 AM. Reason: formatting

  2. #2
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    First of all it seems like you are missing the jquery file:
    http://jquery.com/download/
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

Similar Threads

  1. image rotation
    By nikomou in forum PHP
    Replies: 9
    Last Post: 09-19-2009, 10:50 PM
  2. Random Image JS Script, refresh/reloads 4 image w/rotation to next Ad Box
    By giban in forum Looking for such a script or service
    Replies: 6
    Last Post: 11-26-2008, 07:32 AM
  3. Image Rotation
    By TimFA in forum Flash
    Replies: 0
    Last Post: 09-27-2007, 08:34 PM
  4. image rotation
    By danishadeel in forum JavaScript
    Replies: 1
    Last Post: 09-04-2007, 06:30 AM
  5. Image Rotation...
    By pcbrainbuster in forum JavaScript
    Replies: 11
    Last Post: 04-15-2007, 04:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •