473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Window size and javascript HTML for my site.

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.
Expand|Select|Wrap|Line Numbers
  1. <!-- masked -->
  3. <html> 
  4. <head>
  5. <title>PinkSlipStudio</title>
  6. </head>
  7. <!--text used in the movie-->
  10. <frameset rows="100%,*" border="0">
  12. <frame src="http://www.spiralof5.com/pinkslipstudio.swf" frameborder="0">
  14. <frame frameborder="0" noresize>
  16. </frameset>
  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

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 -->
  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" />
  7. <title>PinkSlipStudio</title>
  8. <script language="JavaScript">
  9. function openNewWindow(URLtoOpen, windowName, windowFeatures) {
  10. newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
  11. </script>
  13. </head>
  14. <!--text used in the movie-->
  16. <frameset rows="100%,*" border="0">
  18. <frame src="http://www.spiralof5.com/pinkslipstudio.swf" frameborder="0">
  20. <frame frameborder="0" noresize>
  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,

Sep 11 '07 #1
2 1768
7,435 Expert 4TB
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
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

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...
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...
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...
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...
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...
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,...
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...
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 I have successfully...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.