473,748 Members | 2,506 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 1795
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
9709
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 click that opens the site in a new and larger window via onclick. My question is, can I have the smaller window automatically close when the user clicks the link to visit the site? I also have a link that merely closes the smaller info window if...
3
1981
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 his browser like a google or yahoo toolbar or a links toolbar it pushes the content down and slightly out of view. I don't want to use a pop up window with toolbars=0 as this is often blocked by software. What I would like is to open the...
14
11094
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 window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
26
5693
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 several parts of the DOM, but this does not include the window object. Thank you
5
2272
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 this out. So far I have come up with the following: <script language="JavaScript" type="text/javascript"> var WindowObjectReference; // global variable
3
2166
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, and the second is that it closes the popup window when you click outside of it. It is a script I have found on the internet, since I have no experience in javascript coding.
7
2087
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 the control F.Result (which is just under the textarea) fully visible at the bottom of the window. What's the right, or best, way to do that? It's right in IE6 at present, and near enough so in FF2 if there's only a single tab. But the "tab...
2
3265
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 validated my HTML and CSS code. 1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for...
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9555
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9376
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9250
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8247
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4878
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
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 we have to send another system

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.