View previous topic :: View next topic |
Author |
Message |
vedran
Joined: 08 Sep 2003 Posts: 458
|
Posted: 08.10.2003 19:45 Post subject: iframe scroler izvan iframe-a |
|
|
Kao sto naslov kaze;kako bih mogao napraviti recimo dva buttona za skrol up i down nekoga inline frame-a na istoj stranici,vjerojatno se moze rijesiti sa javascriptom..
Pa ako netko zna..
Hvala |
_________________ http://www.hocusvojweb.com |
|
Back to top |
|
|
blackduke mi3.crew
Joined: 08 Sep 2003 Posts: 2681 Location: Zagreb
|
Posted: 08.10.2003 20:01 Post subject: |
|
|
html kod wrote: | <!--Scrollable iframe script- By Dynamic Drive-->
<!--For full source code and more DHTML scripts, visit http://www.dynamicdrive.com-->
<!--This credit MUST stay intact for use-->
<iframe id="datamain" src="external.htm" width=150 height=150 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=no></iframe>
<layer visibility=hide>
<div style="width:150px;" align="right">
<a href="#" onMouseover="scrollspeed=-2" onMouseout="scrollspeed=0">Up</a> | <a href="#" onMouseover="scrollspeed=2" onMouseout="scrollspeed=0">Down</a>
</div>
</layer>
|
/head wrote: | <!--DO NOT REMOVE BELOW SCRIPT. IT SHOULD ALWAYS APPEAR AT THE VERY END OF YOUR CONTENT-->
<script language="JavaScript1.2">
//Scrollable content III- By http://www.dynamicdrive.com
var speed, currentpos=curpos1=0,alt=1,curpos2=-1
function initialize(){
if (window.parent.scrollspeed!=0){
speed=window.parent.scrollspeed
scrollwindow()
}
}
function scrollwindow(){
temp=(document.all)? document.body.scrollTop : window.pageYOffset
alt=(alt==0)? 1 : 0
if (alt==0)
curpos1=temp
else
curpos2=temp
window.scrollBy(0,speed)
}
setInterval("initialize()",10)
</script> |
|
|
|
Back to top |
|
|
vedran
Joined: 08 Sep 2003 Posts: 458
|
|
Back to top |
|
|
edgar
Joined: 28 Dec 2003 Posts: 916 Location: Pred monitorom
|
|
Back to top |
|
|
red
Joined: 03 May 2004 Posts: 919 Location: Zabok
|
|
Back to top |
|
|
|