Comments (6)
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.
[deleted comment]
from jqueryrotate.
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.
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.
Thanks for your help and congratulations!
Original comment by [email protected]
on 23 Jul 2011 at 1:54
from jqueryrotate.
Original comment by [email protected]
on 23 Jul 2011 at 7:40
- Changed state: Invalid
from jqueryrotate.
Related Issues (20)
- callback does not behave as expected HOT 3
- Rotating from (eg) 350degrees to 10degrees goes backwards HOT 4
- Not Working IN IE8 HOT 6
- SCRIPT5007: Error HOT 45
- jQuery Conflict in WP. HOT 4
- using jqueryrotate with canvas not working as expected HOT 2
- Patch for /trunk/jQueryRotate.js HOT 1
- Throws error when page contains no 'HEAD' element HOT 4
- Issue on IE8 - not working properly in sequence of animation, after being called after first HOT 3
- "rotate" function doesn't allow string for angle parameter HOT 1
- Bower integration
- JQueryRotate not working when used within a jquery UI Dialog HOT 1
- Patch for /trunk/jQueryRotate3.js HOT 2
- Callback not working! HOT 1
- Using center with angle: 0 does not center the image at the specified coordinate HOT 3
- Not working in IE8 on a div HOT 1
- (supportedCSSOrigin[0] == "T") supportedCSSOrigin[0]="t" isn't useful
- Patch for /trunk/jQueryRotateExample.html
- http://visichattt.blogspot.com/ HOT 1
- JQueryUI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqueryrotate.