div problem og scroller
Hej jeg mener at min javascript code burde virke så jeg tror det er det rigtige sted jeg er !!!Jeg har denne side med en div scroller:
http://www.javacoder.dk:56400/scroller/test.asp
jeg har en tekst som skulle vises i mellem op og ned pilene !! men teksten vises ikke og ved ikke om det virker !!
min side kode er:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript1.2">
// begin absolutely positioned scrollable area object scripts
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
var bw=lib_bwcheck()
var speed=50
var loop, timer
function ConstructObject(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
this.up=MoveAreaUp;this.down=MoveAreaDown;
this.MoveArea=MoveArea; this.x; this.y;
this.obj = obj + "Object"
eval(this.obj + "=this")
return this
}
function MoveArea(x,y){
this.x=x;this.y=y
this.css.left=this.x
this.css.top=this.y
}
function MoveAreaDown(move){
if(this.y>-this.scrollHeight+objContainer.clipHeight){
this.MoveArea(0,this.y-move)
if(loop) setTimeout(this.obj+".down("+move+")",speed)
}
}
function MoveAreaUp(move){
if(this.y<0){
this.MoveArea(0,this.y-move)
if(loop) setTimeout(this.obj+".up("+move+")",speed)
}
}
function PerformScroll(speed){
if(initialised){
loop=true;
if(speed>0) objScroller.down(speed)
else objScroller.up(speed)
}
}
function CeaseScroll(){
loop=false
if(timer) clearTimeout(timer)
}
var initialised;
function InitialiseScrollableArea(){
objContainer=new ConstructObject('divContainer')
objScroller=new ConstructObject('divContent','divContainer')
objScroller.MoveArea(0,0)
objContainer.css.visibility='visible'
objScroller.css.visibility='visible'
initialised=true;
}
var newsInitialised;
function InitialiseNewsScrollableArea(){
objContainer=new ConstructObject('divNewsContainer')
objScroller=new ConstructObject('divNewsContent','divNewsContainer')
objScroller.MoveArea(0,0)
objContainer.css.visibility='visible'
objScroller.css.visibility='visible'
newsIinitialised=true;
}
var screensInitialised;
function InitialiseScreensScrollableArea(){
objContainer=new ConstructObject('divScreensContainer')
objScroller=new ConstructObject('divScreensContent','divScreensContainer')
objScroller.MoveArea(0,0)
objContainer.css.visibility='visible'
objScroller.css.visibility='visible'
screensIinitialised=true;
}
// end absolutely positioned scrollable area object scripts
</SCRIPT>
<style type="text/css">
.content{font-size:10px;font-family:Verdana,Geneva;line-height:12px;text-align:justify;color:#ffffff;}
.moviecontent{font-size:10px;font-family:Verdana,Geneva;line-height:12px;color:#ffffff;}
#divUpControl{position:absolute; width:222; left:20; top:60; z-index:1;}
#divDownControl{position:absolute; width:222; left:20; top:365; z-index:1;}
#divContainer{position:absolute; width:220; height:295; overflow:hidden; top:70; left:20; clip:rect(0,220,295,0); visibility:hidden}
#divContent{position:absolute; top:0; left:0;font-size:11px;font-family:Verdana;line-height:18px;text-align:justify;color:#ffffff;}
#divUpNewsControl{position:absolute; width:369; left:20; top:50; z-index:1;}
#divDownNewsControl{position:absolute; width:369; left:20; top:265; z-index:1;}
#divNewsContainer{position:absolute; width:369; height:206; overflow:hidden; top:60; left:20; clip:rect(0,369,206,0); visibility:hidden}
#divNewsContent{position:absolute; top:0; left:0;font-size:11px;font-family:Verdana;line-height:18px;text-align:justify;color:#333333;}
#divMailingList{position:absolute; top:350; left:20;font-size:10px;font-family:Verdana;line-height:18px;text-align:justify;color:#333333;}
#divUpScreensControl{position:absolute; width:20; left:360; top:118; z-index:1;}
#divDownScreensControl{position:absolute; width:250; left:360; top:366; z-index:1;}
#divScreensContainer{position:absolute; width:280; height:235; overflow:hidden; top:130; left:350; clip:rect(0,280,295,0); visibility:hidden}
#divScreensContent{position:absolute; top:0; left:0;font-size:11px;font-family:Verdana;line-height:18px;text-align:justify;color:#ffffff;}
</style>
</head>
<body bgcolor="#B3E6FB" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 TEXT=#FFFFFF ALINK=#FFFFFF VLINK=#FFFFFF LINK=#FFFFFF>
<div id="divUpControl" align="center"> <a href="java script:;" onMouseOver="PerformScroll(-7)" onMouseOut="CeaseScroll()"><img src="scrollup.gif" width="222" height="11" alt="" border="0"></a></div>
<div id="divDownControl" align="center"> <a href="java script:;" onMouseOver="PerformScroll(7)" onMouseOut="CeaseScroll()"><img src="scrolldown.gif" width="222" height="11" alt="" border="0"></a></div>
<div id="divContainer">
<div id="divContent">
<p>Grand Theft Auto: Vice City</p>
<p>Welcome to Vice City. Welcome to the 1980s. </p>
<p>Having just made it back onto the streets of Liberty City after a long stretch in maximum security, Tommy Vercetti is sent to Vice City by his old boss, Sonny Forelli. They were understandably nervous about his re-appearance in Liberty City, so a trip down south seemed like a good idea. But all does not go smoothly upon his arrival in the glamorous, hedonistic metropolis of Vice City. He's set up and is left with no money and no merchandise. Sonny wants his money back, but the biker gangs, Cuban gangsters, and corrupt politicians stand in his way. Most of Vice City seems to want Tommy dead. His only answer is to fight back and take over the city himself.</p>
<p>From the decade of big hair, excess and pastel suits comes a story of one man's rise to the top of the criminal pile as Grand Theft Auto returns to the PlayStation®2 computer entertainment system this October. Vice City is a huge urban sprawl ranging from the beach to the swamps and the glitz to the ghetto, and is the most varied, complete and alive digital city ever created. Combining non-linear gameplay with a character driven narrative, you arrive in a town brimming with delights and degradation and are given the opportunity to take it over as you choose.</p>
<p>As a major gateway to South America and the Caribbean and attracting migrants, Vice City is brimming with diverse characters, so there's a friend for everyone. It is a sociable place and the new guy in town is sure to meet all manner of friendly people in the sunshine capital of America. Athletes, pop stars, real estate developers, politicians, trailer trash, everyone is moving to Vice City to find out what makes it the number one growth city in America. But, as Tommy quickly finds out, trust is still the rarest of commodities.</p>
<p>Vice City offers vehicular pleasures to suit every taste. For the speed enthusiast, there's high-performance cars and motorbikes. For the sportsman, a powerboat or a golf buggy lets you enjoy the great outdoors. For those that need that sense of freedom and escape, why not charter a helicopter and see the beauty of Vice City from the air?</p>
<p>As the party capital of America, you would expect your ears to be seduced by a host of sultry melodies and pumping beats, but the city is truly rocking. You'll be AMAZED as you sweep through Vice City's FM dial. If you are feeling like trouble, you can tune into some driving rock, or some crucial electro, or maybe you want to slow down with some sweet soul, and there will always be some great romantic anthems if you want to really take your mind off things. </p>
<p>For the action man, or outdoors type, there's tons of fun things to do and adventures to be had… guaranteed. For the secretive or creepy type, Vice City is full of surprises, a place where you'll constantly be surprised by the vivacious, fun-loving types who live there and the things you can discover.</p>
<p>Grand Theft Auto: Vice City is the most diverse and ambitious piece of interactive entertainment yet created. The game is developed by Rockstar North and published by Rockstar Games.</p>
<br>
</div>
</div>
<!-- end absolutely positioned scrollable area object -->
</body>
</html>
nogle der vil hjælpe mig med at få det til at virke !???
