HighDots Forums  

script in java script problem

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss script in java script problem in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sirtcarlos
 
Posts: n/a

Default script in java script problem - 08-02-2004 , 04:16 PM






i currently have a simple java script running to layout my webpage...however, i
am running into a problem with one specific link that simply opens a .mov file
in a new window. at times the button works (mostly on pc), but then at other
times it wont load (on mac). furthermore, on pcs (using ie6) if i do not add
the target="_blank" command in the href, then the mov loads in the same window;
while on the mac (using ie5.2) it automatically loads a new window just for the
mov. if i put the target command in the script, then when it does load on the
mac it loads two windows (one blank, one with the mov).
finally...i tried adding the following script to create a popup window
specifically sized for the mov (a script i have used before with much success,
but never put it inside of java). when i put this script in, none of the page
(created in java) appears.
"<a href="#"
onClick="window.open('cfan.mov','spawn','width=320 ,height=240,scrollbars=no,nore
size');">" [the " at the begining and end arent in the real script]
can anyone give me some suggestions? please help ASAP.
thanks
sirtcarlos



Reply With Quote
  #2  
Old   
E Michael Brandt
 
Posts: n/a

Default Re: script in java script problem - 08-02-2004 , 04:38 PM






Far as I know, "noresize" is a FRAME parameter, and NOT a window.open
argument. Perhaps that misplaced term is messing with the browser.

sirtcarlos wrote:

Quote:
i currently have a simple java script running to layout my webpage...however, i
am running into a problem with one specific link that simply opens a .mov file
in a new window. at times the button works (mostly on pc), but then at other
times it wont load (on mac). furthermore, on pcs (using ie6) if i do not add
the target="_blank" command in the href, then the mov loads in the same window;
while on the mac (using ie5.2) it automatically loads a new window just for the
mov. if i put the target command in the script, then when it does load on the
mac it loads two windows (one blank, one with the mov).
finally...i tried adding the following script to create a popup window
specifically sized for the mov (a script i have used before with much success,
but never put it inside of java). when i put this script in, none of the page
(created in java) appears.
"<a href="#"
onClick="window.open('cfan.mov','spawn','width=320 ,height=240,scrollbars=no,nore
size');">" [the " at the begining and end arent in the real script]
can anyone give me some suggestions? please help ASAP.
thanks
sirtcarlos


--

e michael brandt
michael at valleywebdesigns.com
www.valleywebdesigns.com ::: home of justso picturewindow & photoalbum

--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.