[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: wdvltalk@lists.wdvl.com 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: archive@jab.org 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.
RE: [wdvltalk] Javascript question
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: wdvltalk@lists.wdvl.com 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: wdvltalk@lists.wdvl.com 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: wdvltalk@lists.wdvl.com 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: archive@jab.org 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.
Re: [wdvltalk] Javascript question
On Thu, 16 Nov 2006, Portman wrote: 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 cannot figure out how to get this to go to a different file (i.e. ssmItems1.js) when there is a different resolution. The screen resolution is unimportant, unless the browser happens to be full-screen (and you know the space taken up by the browser's borders etc). Do you have an example URL of that script in operation so we can see what it does? Cheers Dave P 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: wdvltalk@lists.wdvl.com 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: archive@jab.org 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.
[wdvltalk] JavaScript Question
Hi all, I was wondering if there is a way to check if a field in a form has been left blank and, if it is, not have it appear on the e-mail (that I get from the form processor.) For example, my code is: td width=5% input type=checkbox name=Butternut Squash Soup value=Butternut Squash Soup size=2 / input name=Butternut Squash Soup quantity type=text size=2 maxlength=5 / /td td width=23%Butternut Squash/td I want people to be able to check the checkbox if they want the item and then put in the quantity in the quantity box. If they don't check the box, nothing for that item comes back on the form. When I get the form back, it has all the quantity items, even if they didn't enter a quantity. Am I making any sense? TIA, Riva Riva Portman, MCIWD Certified Webdesigner Star Quality Designs www.starqualitydesigns.com The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: set WDVLTALK pw=yourpassword in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub 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.
[wdvltalk] JavaScript question
Hi everyone, Does anyone have a javascript that pops a new window, but without the title bar? I have scripts that will remove everything else, but I also want to remove the title bar and just leave bit of chrome around all 4 edges. Any suggestions? Thanks, Jenni The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: set WDVLTALK pw=yourpassword in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub 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.
[wdvltalk] Javascript question
Hi list, Can anyone who's better at Javascript than me (i.e. just about anyone) help me out with a quick function? At the moment it looks like this: function toggleFormElements () { // TODO: // Hide all form elements on the page, // unless they're already hidden, // in which case show them all. return true; } As you can see it needs a bit of fleshing out :-) Any help much appreciated. Cheers Jon Witan Jardine 13 Southampton Place London WC1A 2AL Tel: 020 7404 4004 Please visit us on the Internet: http://www.witanjardine.co.uk/ 'The information included in this e-mail is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege of confidentiality. If you have received this email in error, please forward it to [EMAIL PROTECTED], thank you.' The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]