473,509 Members | 2,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Window size and javascript HTML for my site.

2 New Member
Hi. I must first say I'm not an experienced scripter.

Here's my problem and how far I am so far. I struggled for awhile to get the browser to fill most of it with my flash movie and keep it proportional if the user chooses to size up or size down. This pretty much takes care of the browser size complications. Here is original script and it works. But now I have few problems after this.
CODE#1
Expand|Select|Wrap|Line Numbers
  1. <!-- masked -->
  2.  
  3. <html> 
  4. <head>
  5. <title>PinkSlipStudio</title>
  6. </head>
  7. <!--text used in the movie-->
  8.  
  9.  
  10. <frameset rows="100%,*" border="0">
  11.  
  12. <frame src="http://www.spiralof5.com/pinkslipstudio.swf" frameborder="0">
  13.  
  14. <frame frameborder="0" noresize>
  15.  
  16. </frameset>
  17.  
  18. </html>
  19. <!-- m -->
So far so good. But, if I'm calling out a complicated java action (I am using borderless exact size popups which is this code in flash
Expand|Select|Wrap|Line Numbers
  1. getURL("javascript:openNewWindow('http://www.spiralof5.com/tb_flash2.swf','thewin', 'height=206,width=430,toolbar=no,scrollbars=no')");
in flash this isn't enough. If I were to just export my html file (instead of starting on my own from scratch) flash 2007 USE TO export out this html

CODE#2
Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript">
  2. function openNewWindow(URLtoOpen, windowName, windowFeatures) {
  3. newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
  4. </script>
o.k. The reason why I say USE TO is because Flash 8 now exports out something different which doesn't allow me to do popups the way I used to. So I export the html from Flash 8, insert the above code #2 and oila, javascript works again in Flash8 and I now have popups.

But remember this doesn't have code #1 in it. Since I don't want the object tags and body tags messing with the code from #1 I instead paste code #2 into my made from scratch html that contains code #1. I get no popups. I've tried to mix and match the html files and this is what I came up with but it doesn't work.

Expand|Select|Wrap|Line Numbers
  1. <!-- masked -->
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  6.  
  7. <title>PinkSlipStudio</title>
  8. <script language="JavaScript">
  9. function openNewWindow(URLtoOpen, windowName, windowFeatures) {
  10. newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
  11. </script>
  12.  
  13. </head>
  14. <!--text used in the movie-->
  15.  
  16. <frameset rows="100%,*" border="0">
  17.  
  18. <frame src="http://www.spiralof5.com/pinkslipstudio.swf" frameborder="0">
  19.  
  20. <frame frameborder="0" noresize>
  21.  
  22. </frameset>
  23. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">
  24. <param name="allowScriptAccess" value="sameDomain"/>
  25. <embed allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
  26. </object>
  27. </html>
  28. <!-- m -->
just so you know this isn't for annoying popups, I am an artist and this is for my portfolio site www.spiralof5.com.

Thank you very much,

Scott
Sep 11 '07 #1
2 1782
drhowarddrfine
7,435 Recognized Expert Expert
Please be aware that html is not a scripting languge but a "markup" language.
Also, Java is not the same thing as Javascript and they have nothing in common despite the name.

Your page does not have a proper doctype. Without one, IE goes into 'quirks mode'. See the article above about doctypes under Articles.

While you are there, also read about validating your html and css so you can get those lists of errors in your markup.
I am an artist
That's OK. We get all kinds here. :)

Since this is really a javascript question, I will send this thread there.
Sep 11 '07 #2
spiralof5
2 New Member
thank you!

I apologize, I thought this would be an html question due to the fact there's something not in the html that I thought I needed to add.
Sep 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
9694
by: Carol Lyn | last post by:
Could use your assistance with this. I have a window that opens via onclick and it is a small window with info about a site. If the user is interested in visiting that site, there is a link to...
3
1961
by: Chris | last post by:
Hi I have designed my website to fit my standard windows. I use a javascript scroller that nescitates the removal of the browser scroll bars. However if a user has an extra toolbar open in...
14
11018
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
26
5635
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
5
2252
by: JNariss | last post by:
Hello, Within a form I created I have placed links that users can click on to view information. I am trying to write a javascript code so it opens in a sized window but I can't seem to figure...
3
2148
by: EnjoyNews | last post by:
I have a popup problem. I have a script that generates a popup for image viewing. It has 2 function, and the first is that it automaticly generates the popup window to the size of the image,...
7
2056
by: Dr J R Stockton | last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in IE6, IE7, Firefox 2, and wherever else practicable, with the control labelled F.X0 fully visible at the top of the window and...
2
3229
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.