Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vertical Scroller positioning problem in Netscape

Status
Not open for further replies.
<td align=center><p align=center>script here</p></td> DeZiner
gear.gif width=45 align=left
When the gears stop turning,
we all stop learning.
 
I wish it was that easy. It's still not centered. Anything in CSS to move it over?? Any more ideas??
 
Looking into the code I see it is using JavaScript to actually do the positioning. Put this post in that forum I bet they can tell you how to modify the script to be cross browser compatible. DeZiner
gear.gif width=45 align=left
When the gears stop turning,
we all stop learning.
 
<script language=&quot;JavaScript&quot;>

/*
Mike's DHTML scroller (By Mike Hall)
Permission granted to Dynamicdrive.com to include script in archive
For this and 100's more DHTML scripts, visit */

var myScroller1 = new Scroller(10, 10, 110, 190, 2, 2);
myScroller1.setColors(&quot;#006600&quot;, &quot;#ccffcc&quot;, &quot;#009900&quot;);
myScroller1.setFont(&quot;Verdana,Arial,Helvetica&quot;, 1);
myScroller1.addItem(&quot;Come visit us at the <a href=' Moncton Atlantic Industrial Exhibition</a> at The Coliseum-Agrena in Moncton, New Brunswick (Booth 531) on Sept 12 and 13.&quot;);

function runmikescroll() {

var layer;
var mikex, mikey;

// Locate placeholder layer so we can use it to position the scrollers.

layer = getLayer(&quot;placeholder&quot;);
mikex = getPageLeft(layer);
mikey = getPageTop(layer);

// Create the first scroller and position it.

myScroller1.create();
myScroller1.hide();
myScroller1.moveTo(mikex, mikey);
myScroller1.setzIndex(0);
myScroller1.show();
}

window.onload=runmikescroll
</script></p>

<div id=&quot;placeholder&quot; style=&quot;position:relative; width:110px; height:2px;&quot;>&nbsp;</div>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top