|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
javascript help needed
Hi Guys:
Am having a severe brain cramp and cannot for the world of me get beyond the errors I am getting. Basically this is what am looking for: Detect screen resolution and do the following: if resolution width is less than 800 pixels then the link should be low.html if resolution width is greater than 800 pixels then link should be high.html The new window, loading high.html needs to be loaded from a link, without toolbars, menus etc. Thanx for any help. |
|
|
|
|
|
#2 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
Please ignore above question .. I had done it right .. however, my editor (HomeSite+) seems to have some sort of an issue with running JS correctly without saving the file first (as a temp file) it continually pops up errors even after successfully creating a window. I couldnt believe I was having this much trouble with it.
Anyways .. if anyone wants to look at it here goes (yeah I know its way too simple to have errors) PHP Code:
|
|
|
|
|
|
#3 |
|
Member (5 bit)
Join Date: Jan 2005
Posts: 24
|
homesite is a macromedia product right? are you using flash buttons to open the windows or are you doing an OnPageLoad event?
if you are using flash buttons, you have to write the code on the button's action script... |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|