Hi Riva -
I'm not familiar with this script, or specifically what you mean when you
say it "moves" with the resolution (I have an idea but am not positive).
My first thought would be to try wrapping it in a <div> tag and using CSS to
set the position of it to where you want. Something like
<div class="menu">
<SCRIPT type="text/javascript" SRC="ssmItems.js"
language="JavaScript1.2"></SCRIPT>
</div>
Then use the menu class for positioning. Not an expert on CSS (ok, on
anything really) but it's worth a try.
Otherwise... Depending on your language you would need to determine the
resolution, then use a variable to call the right script. For instance, in
ASP:
If resolution = 800x600 then
res = "1"
Elseif resolution = 1024x768 then
res = "2"
End if
Then in your script file you would then use
<SCRIPT type="text/javascript" SRC="ssmItems<%=res%>.js"
language="JavaScript1.2"></SCRIPT>
Then you would have a .js file for each resolution (ssmItems1.js,
ssmItems2.js, etc). These could be located in the same folder. The problem
would be if there are other files calling the original .js script that would
then be screwed up.
Again, this is just something to help get you started.
Todd
-----Original Message-----
From: Portman [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 16, 2006 10:17 AM
To: [email protected]
Subject: [wdvltalk] Javascript question
I have a page where I want to add a mouse over slide out menu. The problem
is that the menu moves depending on the screen resolution. I thought of
trying a browser screen resolution script, but keep getting stuck. The code
is:
<SCRIPT type="text/javascript" SRC="ssm.js" language="JavaScript1.2">
//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03' for doctype bug //For full source, and 100's more
DHTML scripts, visit http://www.dynamicdrive.com
</SCRIPT>
<SCRIPT type="text/javascript" SRC="ssmItems.js"
language="JavaScript1.2"></SCRIPT>
The ssmItems.js file is where you specify where the menu appears, etc. I
cannot figure out how to get this to go to a different file (i.e.
ssmItems1.js) when there is a different resolution.
Any help would be much appreciated.
Thanks,
Riva
____ . The WDVL Discussion List from WDVL.COM . ____ To Join wdvltalk, Send
An Email To: mailto:[EMAIL PROTECTED] or use the web
interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected] To change subscription
settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To
unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.
____ The WDVL Discussion List from WDVL.COM ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.