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
How do I spin my logo?
Old 06-18-2012, 09:36 PM Re: How do I spin my logo?
Junior Talker

Posts: 3
Trades: 0
Its either me totally missing the point, or you totally missing my previous comment
YemSalat is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-19-2012, 05:52 AM Re: How do I spin my logo?
miki86's Avatar
Extreme Talker

Posts: 239
Location: print_r($serbia);
Trades: 0
Quote:
Originally Posted by YemSalat View Post
So much hassle!
Just use this: code.google.com/p/jqueryrotate/
That's not spinning, that's rotating.

Matt you forgot to include mootools library.

HTML Code:
<script language="javascript" type="text/javascript" src="hdr_anim/jquery-1.2.3.min.js"></script>
<script language="javascript" type="text/javascript" src="hdr_anim/jquery.flow.1.2.auto.js"></script>
<script language="javascript" type="text/javascript" src="http://mootools.net/download/get/mootools-core-1.4.5-full-nocompat-yc.js"></script> <!-- Change the path-->
<script language="javascript">
$(document).ready(function(){
	$("#myController").jFlow({

		slides: "#mySlides",

		width: "410px",

		height: "264px",

		duration: 400

	});
/* put my code here */
});
Check if everything else is working since both jquery and mootools use "$ sign".
miki86 is offline
Reply With Quote
View Public Profile
 
Old 06-19-2012, 06:24 AM Re: How do I spin my logo?
miki86's Avatar
Extreme Talker

Posts: 239
Location: print_r($serbia);
Trades: 0
Ok forget about mootools...

Use this code: http://jsfiddle.net/miki86/qqzpG/

It's written for jquery.
Just put it under $(document).ready(function(){...});

Im not very familiar with jquery so this can probably be done in better way but it's gonna do the job.
miki86 is offline
Reply With Quote
View Public Profile
 
Old 06-19-2012, 10:58 AM Re: How do I spin my logo?
PN-Matt's Avatar
Super Talker

Posts: 119
Location: London/Oxford, England
Trades: 0
Quote:
Just put it under $(document).ready(function(){...});
Where can I find this code? It's not in my index.html

Thanks,
__________________

Please login or register to view this content. Registration is FREE
PN-Matt is offline
Reply With Quote
View Public Profile Visit PN-Matt's homepage!
 
Old 06-19-2012, 12:11 PM Re: How do I spin my logo?
lizciz's Avatar
Super Spam Talker

Posts: 845
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Look at mikis post #23. That's a slice of your code from your index.html.
Where miki wrote /* put my code here */, put his code there
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.

Last edited by lizciz; 06-19-2012 at 12:13 PM..
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-19-2012, 04:59 PM Re: How do I spin my logo?
PN-Matt's Avatar
Super Talker

Posts: 119
Location: London/Oxford, England
Trades: 0
Oh, Thank you.

Managed to get it in but now it's moving my links on the right too. What I can I adjust for this?

http://www.villaringheim.com/index.html

Thank you,
__________________

Please login or register to view this content. Registration is FREE
PN-Matt is offline
Reply With Quote
View Public Profile Visit PN-Matt's homepage!
 
Old 06-19-2012, 06:44 PM Re: How do I spin my logo?
lizciz's Avatar
Super Spam Talker

Posts: 845
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Set the width of the containing div to the same as the image, and center the image using automatic margin, as in:
HTML Code:
<div id="logo_container">
    <img id="logo" src="your_image.png" ... />
</div>
Code:
#logo_container {
    width: 146px;
}
#logo {
    margin: 0 auto;
}
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.

Last edited by lizciz; 06-19-2012 at 06:45 PM..
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-19-2012, 07:37 PM Re: How do I spin my logo?
miki86's Avatar
Extreme Talker

Posts: 239
Location: print_r($serbia);
Trades: 0
I suggest you restore your index.html from backup (if you have any) and then try again because you have a bunch of javascript errors.

Code:
$("#img").rotate is not a function /villaringheim/(line 165)
miki86 is offline
Reply With Quote
View Public Profile
 
Old 06-22-2012, 06:38 PM Re: How do I spin my logo?
PN-Matt's Avatar
Super Talker

Posts: 119
Location: London/Oxford, England
Trades: 0
Okay, Thank you.
__________________

Please login or register to view this content. Registration is FREE
PN-Matt is offline
Reply With Quote
View Public Profile Visit PN-Matt's homepage!
 
Reply     « Reply to How do I spin my logo?

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 0.26122 seconds with 11 queries