Closed Thread Icon

Preserved Topic: zscroller (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7941" title="Pages that link to Preserved Topic: zscroller (Page 1 of 1)" rel="nofollow" >Preserved Topic: zscroller <span class="small">(Page 1 of 1)</span>\

 
Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 11-24-2001 05:21

Hey guys, I'm working at using the zscroller from znippets.com. I really like it. Great job on it. I was wondering how I could resize it so that it's about 100/100. I want to use it as a center window where all textual information is presented on MouseOver and MouseOut functions. How would I do that? is it possible? easy?
Thanks for the help guys.
If I'm becoming a pain, let me konw. I'll shut up, maybe


mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 11-24-2001 09:21

Open Zsetup.js in your favorite text editor and modify all variables that are related to scroller dimensions...


Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 11-24-2001 16:49

cool I got it so it doesn't fill the screen and so it's the size I want, but I can't for the life of me figure out how to keep it centered all the time with the other objects around it. I tried putting it into a table that's centered, but it doesn't work
hmmmm

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-24-2001 18:45

Ensabunar: Welcome. Without seeing the actual page I can't really comment as it could be other elements throwing things out but here are CSS-only examples of page centring which might prove useful (don't work in NS4.x)
http://bluerobot.com/web/css/center1.html
http://bluerobot.com/web/css/center2.html

Emps


You're my wife now Dave

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 11-24-2001 22:37

Hey Ensabanur! How's it going? I'll see if I can help. First, which one are you using, ZscrollBar or ZscrollBar2? ZcrollBar2 is easiest to change this way, here's how it'd be done.

In the Zsetup.js file, (which is quite short) you'll find a couple of lines for defining "safeTop" and safeLeft", those are easy, the top and left corner where the scrollbar unit will appear, text included. The next two lines are functions that return the "safeRight" and "safeBottom" values. Just comment out the function and add in something like "return 240;" or some other fixed number, then it will draw the box out to that point, and no further. Try it out. If by chance you're using the older script, you'll have two wait till I'm back at my own computer, I'll try and explain from there.

Your pal, -doc-

Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 11-25-2001 03:01

doc, thanks for respnding. I saw that lastnight and I tried to do that but nothing happened. Here's the source for the page.
code
________________________________________________
<html>
<head>
<title>OZONE: ZscrollBar demo</title>

<script LANGUAGE="JavaScript" SRC="scripts/Zprime.js"></script>
<script LANGUAGE="JavaScript" SRC="scripts/Zbrowse.js"></script>
<script LANGUAGE="JavaScript" SRC="scripts/Zobject.js"></script>

<script LANGUAGE="JavaScript" SRC="scripts/Zsetup.js"></script>
<script LANGUAGE="JavaScript" SRC="scripts/ZscrollBar2.js"></script>
<script LANGUAGE="JavaScript" SRC="scripts/ZscrollBarWheel.js"></script>

<LINK REL=stylesheet HREF="css/ZscrollBar.css" TYPE="text/css">

</head>

<body bgcolor="#FFFFFF" scroll="no" text="yellow">
<table width="100%" height="100%" align="center" valign="middle">
<tr>
<td width="100%" height="100%" align="center" valign="middle">
<img src="../autodemo/autodemoicon3.gif" style="z-index:0;">
</tr>
</td>
<tr>1</tr>
<td>2</td>
<tr>3</tr>
<td>4</td>
</table>

<table width="100%" height="100%" ALIGN="center" valign="middle">
<tr>
<td width="100%" height="100%" ALIGN="center" valign="middle">
<div id="divCont">
<div id="floatContent">


</div></div>
</td>
</tr>
</table>
<div id="scrollbkg">&nbsp;</div>

<div id="uparrow"><img src="images/uparrow2.gif" width="15" height="12" border="0"></div>
<div id="downarrow"><img src="images/downarrow2.gif" width="15" height="12" border="0"></div>

<div id="slider"><img src="images/slider2.gif" width="11" height="44" border="0"></div>

<div id="divOutline">&nbsp;</div>

<div id="logo"></div>
</body>
</html>
________________________________

the numbers in the tables are simply so I know where they are. IT's just easier for me to organize the page that way. The window pops up at the top of he page. I want it in the middle over the picture "autodemo3icon.gif". it's already always centered, which is cool I'm assuming it's from the safeLeft and safeTop values. I don't know what to do. IT would sure be cool to figure it out.
Any thoughts?

oh, I'm using the newest version of the code so I guess that's zscrollbar2.

Ensa

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 11-26-2001 09:46

OK; I think I see what might be the problem. We have these two <div>'s, <div id="divCont"> and <div id="floatContent">. The outside one (divCont) should be the "outline" of where your content is going, the <table> layouts are redundant. Placing the <div>s inside of the tables is bound to muck things up also, I'm certain. The <div> is intended to "float" ofver the other content on the page, and it's placement on the page is specified by the CSS stylesheet and the Javascript code.


Your pal, -doc-

Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 11-26-2001 22:43

I almost promise this is my last questions about this. I got it centered. However, I can't figure out how to make buttons from other aspects of the page link to the window? do I just use the div id cause I tried that and it didn't work.



Ensabanur
Bipolar (III) Inmate

From: KY
Insane since: Nov 2001

posted posted 11-27-2001 18:54

I got it figured out. If you want to check it out to see what you guys have been helping me with you can check it at
here It's not complete, but I'm working on making it look better. If you have any ideas throw 'em my way.

Thanks for the help

Ensa

« BackwardsOnwards »

Show Forum Drop Down Menu