Click here to Skip to main content
15,887,214 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: nodejs article moderation state unclear Pin
Richard MacCutchan3-Mar-12 23:26
mveRichard MacCutchan3-Mar-12 23:26 
AnswerRe: nodejs article moderation state unclear Pin
BobJanova5-Mar-12 0:43
BobJanova5-Mar-12 0:43 
QuestionAccessing another windows variables Pin
Member 43038102-Mar-12 3:16
Member 43038102-Mar-12 3:16 
AnswerRe: Accessing another windows variables Pin
BobJanova2-Mar-12 4:14
BobJanova2-Mar-12 4:14 
AnswerRe: Accessing another windows variables Pin
all_in_flames23-Apr-12 4:12
professionalall_in_flames23-Apr-12 4:12 
Questionpassing parameter from one page to another Pin
jack4277928-Feb-12 11:12
jack4277928-Feb-12 11:12 
AnswerRe: passing parameter from one page to another Pin
R. Giskard Reventlov28-Feb-12 11:33
R. Giskard Reventlov28-Feb-12 11:33 
QuestionJQuery Animate Pin
SRJ9226-Feb-12 16:22
SRJ9226-Feb-12 16:22 
Hey,
Any ideas why this won't work? i want the text and image to go back to the original position then repeat the previous animation, so the text goes out to the right then resets, and comes back in from the left, and the same for the image ..

JavaScript
<
<html>
<head>
<script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'></script>
<script type="text/javascript"> 
$(document).ready(function(){
		bringIn(); 	
 function bringIn()
	{
	$("#animation_image").animate({top:10},"slow");
	$("#animation_text").animate({left:30},2000);
	window.setTimeout(takeOut, 5000);
	};
 function takeOut()
	{
	$("#animation_image").animate({top:401},"slow").queue(function(){
		$("#animation_text").animate({left:1000},"slow",bringIn);
		//new
		$("#animation_text").css({"left":"-600px"});
		$("#animation_image").css({"top":"-200px"});
		$("#animation_text").html("Why you no working");
	});
	};
});
 
</script> 
</head>
 
<body>
<button>Start Animation</button>
<br /><br />
<style type="text/css">
#animation_box
	{
	position:relative;
	width:800px;
	height:300px;
	margin:0px auto 0px auto;
	background-color:#333333;
	overflow:hidden;
	}
#animation_text
	{
	position:absolute;
	display:block;
	z-index:2;
	left:-600px;
	top:20px;
	width:300px;	
	font-family:Arial, Helvetica, sans-serif;
	font-size:30px;
	line-height:45px;
	color:white;
	}
#animation_image
	{
	position:relative;
	display:block;
	float:right;
	top:-200px;
	margin-right:10px;
	}
</style>
<body>

<div id="animation_box">
						<div id="animation_text">
							<ul>
								First 3 hours £36
							</ul>
						</div>
						<div id="animation_image">

									<img src="img/slides/img8.jpg" id="animation_img" width="420px" height="280px" alt="Car image"/>

						</div>
					</div>
</body>
</html>


Thanks for all your help
Questionpassing parameter from one page to another Pin
vaibhavtiwari26025-Feb-12 21:00
vaibhavtiwari26025-Feb-12 21:00 
AnswerRe: passing parameter from one page to another Pin
hansoctantan28-Feb-12 2:04
professionalhansoctantan28-Feb-12 2:04 
AnswerRe: passing parameter from one page to another Pin
chandubond12-Mar-12 6:17
chandubond12-Mar-12 6:17 
QuestionTrying to use age.ClientScript.RegisterHiddenField - need help Pin
Member 779716724-Feb-12 13:49
Member 779716724-Feb-12 13:49 
QuestionHow to Create Ruler JavaScript Pin
Anubhava Dimri21-Feb-12 6:59
Anubhava Dimri21-Feb-12 6:59 
AnswerRe: How to Create Ruler JavaScript Pin
AspDotNetDev21-Feb-12 7:07
protectorAspDotNetDev21-Feb-12 7:07 
GeneralRe: How to Create Ruler JavaScript Pin
Anubhava Dimri21-Feb-12 17:19
Anubhava Dimri21-Feb-12 17:19 
GeneralRe: How to Create Ruler JavaScript Pin
Mohibur Rashid22-Feb-12 14:34
professionalMohibur Rashid22-Feb-12 14:34 
AnswerRe: How to Create Ruler JavaScript Pin
stuartthomas0125-Mar-12 21:13
stuartthomas0125-Mar-12 21:13 
Questioncall web service from java script Pin
giocot17-Feb-12 6:35
giocot17-Feb-12 6:35 
AnswerRe: call web service from java script Pin
Joachim123421-Feb-12 10:59
Joachim123421-Feb-12 10:59 
Questioni am using console.log() in my code. Pin
DeepthiTanguturi15-Feb-12 18:27
DeepthiTanguturi15-Feb-12 18:27 
AnswerRe: i am using console.log() in my code. Pin
thatraja15-Feb-12 19:29
professionalthatraja15-Feb-12 19:29 
AnswerRe: i am using console.log() in my code. Pin
DaveAuld19-Feb-12 0:59
professionalDaveAuld19-Feb-12 0:59 
Questionattr disabled property is not working for FF Pin
dayakar_dn12-Feb-12 19:35
dayakar_dn12-Feb-12 19:35 
AnswerRe: attr disabled property is not working for FF Pin
Graham Breach12-Feb-12 22:46
Graham Breach12-Feb-12 22:46 
AnswerRe: attr disabled property is not working for FF Pin
Mohibur Rashid14-Feb-12 5:53
professionalMohibur Rashid14-Feb-12 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.