GithubHelp home page GithubHelp logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
This is really strange - on my Firefox everything is seems fine... hmm I need 
to investigate, maybe download new version of FF to check that o_O

Original comment by [email protected] on 21 Jul 2011 at 1:48

from jqueryrotate.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
[deleted comment]

from jqueryrotate.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
The site works normally, but when this is done the code does not work again.
I inserted thejqueryrotate.2.1.js and jquery-1.6.2.js and the script below, all 
as shown, but does not work. My FireFox is the latest version.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="jQueryRotate.2.1.js"></script>
<script type="text/javascript" src="jquery-1.6.2.js"></script>

<script>
$("#logo").rotate({ 
bind: 
{ 
mouseover : function() { 
$(this).rotate({animateTo:180})
},
mouseout : function() { 
$(this).rotate({animateTo:0})
}
} 
});
</script>

</head>
<body>
<img src="logo.png" width="390" height="390" id="logo" />
</body>
</html>

Original comment by [email protected] on 22 Jul 2011 at 1:13

from jqueryrotate.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
So the code you provided should not work as you first define script, then body 
and then image. If you would like to do that then you have to wrap a script 
execution into a $(document.body).ready(function(){});
Additionally dont forget to add type="text/javascript" there to script (as a 
good practice heheh).

<script type="text/javascript">
$(document.body).ready(function(){
$("#logo").rotate({ 
bind: 
{ 
mouseover : function() { 
$(this).rotate({animateTo:180})
},
mouseout : function() { 
$(this).rotate({animateTo:0})
}
} 
});
});
</script>

Original comment by [email protected] on 22 Jul 2011 at 7:14

from jqueryrotate.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Thanks for your help and congratulations!

Original comment by [email protected] on 23 Jul 2011 at 1:54

from jqueryrotate.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024

Original comment by [email protected] on 23 Jul 2011 at 7:40

  • Changed state: Invalid

from jqueryrotate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.