473,387 Members | 1,541 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,387 software developers and data experts.

Odd flash display problem w/ Div tags

I just play around mainly in javascript, and I was making a web page
(http://www.freewebs.com/prugle/games.htm). I have asked a few people
to look at it, and so I have. Some people can see the flash file of
the game (once theychose a game) but others could not. I myself can
see them in Firefox 2.0, but not AOL 9.

The basic javascript is:

<div id="swfarea" class="style2 style5 style8"></div>
//Add games section
name[1] =" Rush"//Can edit
filenames[1] = "Rush 2.swf"//Can edit
heights[1] = 600//Can edit
widths[1] = 600//Can edit

name[2] = "Ghost Chase"//Can edit
filenames[2] = "GhostChase.swf"//Can edit
heights[2] = 559//Can edit
widths[2] = 763//Can edit

--- this is part of a function called wiht a byval of "idno" ---

document.getElementById("swfarea").innerHTML = " <object width=\"" +
widths[idno] + "\" height=\"" + heights[idno] + "\"<param name=
\"movie\" value=\"" + filenames[idno] + "\" /><embed src=\"" +
filenames[idno] + "\" width=\"" + widths[idno] + "\" height=\""
+heights[idno] + "\" ></embed>"//Do not edit

--- In a different function ---
document.getElementById("swfarea").innerHTML = "<h2 align=\"center\"
class=\"style2 style5\">Introduction</h2Hello and welcome to the
games section of Foundation Flash. We aim to host new, up and coming
flash games, plus a few old favourites. You can get to games in two
ways: either by using the drop down list at the top, or by presseing
one of the links in the 'Current Games' section below. Please note
that the back browser button may not work on this page, as it is a new
dynamic technology we are using to give you the best performance."//
Can edit
The comments are for a friend of mine who isn't very good at
javascript but would like to help. I hope you can decode the
javascript. I really do not know what will definately solve it, or
whether there is a solution at all

Thanks anyway,

Jarry

Feb 8 '07 #1
1 1712
Jarry wrote:
I just play around mainly in javascript, and I was making a web page
(http://www.freewebs.com/prugle/games.htm). I have asked a few people
to look at it, and so I have. Some people can see the flash file of
the game (once theychose a game) but others could not. I myself can
see them in Firefox 2.0, but not AOL 9.
Don't use innerHTML to change content, use DOM methods.
--
Rob
Feb 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mirco | last post by:
Hi I have a page written with php and a MySQL Database. Now, I want to redesign the whole, but still with the Database and php. is it possible to design the page with Flash and then to put all...
9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
2
by: dnc28 | last post by:
Hi! Have a look at these sites. http://www.untitledstudio.com/flash.htm http://www.uniform.net/index2.html Both these sites have a Flash .swf file embedded into a HTML webpage.
1
by: Rebecca Tsukalas | last post by:
hello, is there an official or a correct way for the following problem: in my xml file, there is also html text. this xml file is used in flash and a php code. the problem is, that - using...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
5
by: suresh_nsnguys | last post by:
Hi, I am facing one problem in embed flash object.i am displaying the flash (.swf file) using embed tag<embed> in IE.i want to display the alert box when user click the mouse over the flash .i am...
1
by: critchey1 | last post by:
Hey everyone, i've been playing around with trying to get some scripts to work with detecting whether flash player is installed on your computer or not. I found a flash detection kit on the adobe...
0
AutumnsDecay
by: AutumnsDecay | last post by:
Hey there. I have been given an XML document and have been asked to create a Flash object that uses the variables in the XML document to generate the output. The project is for a weather data...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...

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.