Determining width of main screen
|
Posted
#5699
(In Topic #1370)
|
|
|---|---|
|
Fan in training |
Determining width of main screenThe code that I am working on for the scrolling marquee must have the width defined and I would like to be able to make it non-static so that no matter what resolution someone views the pages at, it appears normal. Thanks, James
|
|
Posted
|
|
|
Community saint |
What code do you have so far for the scrolling marquee? |
|
Posted
|
|
|
Fan in training |
However, when it set's up the java code for the marquee it defines the width as something like width = 300px. I am not sure if I can use a %. I'll mess around with it. I am trying to get these simple things added as I want my employer to go to ocPortal for the main website. I get so tired of people complaining that it never gets updated…. blah blah blah. I need the marquee (which BTW: there is a <marquee> tag that works nativly with IE and Netscape now), this java one is cross platform. Since my company uses IE mostly I could probably get away with hard coding my own, but I feel since I am not paying for ocPortal (yet) I need to contribute. A few other things I need to get down is a lunch calendar that has built in ocPortal support (I saw in a forum earlier). So that will probably be my next project, but a simplistic calendar (Mon = Lunch-Corn Dog, juice, milk). If you want the code that I have for the Java Marquee I can send it to you…. OK, now I have babbled on for a bit, back to work. Thanks, James
|
|
Posted
|
|
|
Well-settled |
Code
<script language="javascript" type="text/javascript">
Rather than trying to define a width through some tricky javascript all over your page, you could try setting the width as a percentage like you mentioned. I don't see why you wouldn't be able to. You can do it with text boxes and all sorts If it doesn't like percentages you could try using somehting like the above bit of javascript in the middle of your javascript marquee code to cover the main screen resolutions from 800*600 upward (1024*768, 1280*whatever and so on). Hope that helps some
The Last Outpost - Entertainment news, reviews, previews & interviews. No holds barred - big boys' language in use!
|
|
Posted
|
|
|
Fan in training |
My wife and kids have been sick this week, so I have not had a chance to work on it just yet. I hope to get some time on this weekend. Thanks, James
|
|
Posted
|
|
|
ocStaff (admin) |
|
|
Posted
|
|
|
Fan in training |
I like the features that some of the Java ones have, but I might just wimp out and use the IE <marquee> tag and forget about it. The only thing that I would have to do then is modify the database to automaticly add and remove messages. Thanks, James
|
|
Posted
|
|
|
Well-settled |
The Last Outpost - Entertainment news, reviews, previews & interviews. No holds barred - big boys' language in use!
|
|
Posted
|
|
|
Fan in training |
(I belive a duh to myself is in order) Thanks, James
|
1 guests and 0 members have just viewed this: None
Control functions:







