jQuery Scroll pagina naar rechts

Status
Niet open voor verdere reacties.

xvilo

Gebruiker
Lid geworden
14 dec 2008
Berichten
492
Hallo,

Ik ben niet al te goed met javascript en jquery.
Dus hierbij mijn vraag:
Ik ben opzoek naar een scriptje die de pagina 1440px naar rechts scrolled als het <audio> element klaar is met afspelen.

Weet iemand hoe ik dit kan realiseren?
Dus ik heb zeg maar deze html code als basis:
Code:
<!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>
</head>


<body style="width:2880px; height:100%; margin:0;">
<!-- Audio  -->
	<audio preload="auto" autoplay>
		<source src="dingdong.ogg" type="audio/ogg">
		<source src="dingdong.mp3" type="audio/mp3">
	</audio>
</body>
<div style="width:1440px; background:#999; float:left"> Div1</div>
<div style="width:1440px; background:#9F6; float:left"> Div 2</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script>
<script>
//scroll script
</script>
</html>

Dus als dingdong klaar is met afspelen moet ie van div 1 naar div 2 scrollen.

Alvast bedankt

//xvilo
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan