PDA

View Full Version : javascript question


squadjot
02-20-2006, 08:51 PM
this is kinda hard to explain..but i'll try

currently i'm using a SWF that in the HTML has been embedded with "no-scale", and width/height are set to 100%..that gives me this nice centered flash.. with no real boundaries.

now my question, can you by javascript change the flashobject tag in the HTML?, on the fly?.. so that you this way could change the height to lets say 700 pixels (instead of just 100%)

For it to be a succes it has to happen fluently (no page reload!)

is this possible at all?

Cota
02-20-2006, 11:37 PM
no page reload...dont think you'll get a way with that. But document.write() might be what you're after. If you find a solution that doesnt need a page reload, please be sure to post it.

oldnewbie
02-21-2006, 12:56 AM
You could also try embedding the movie in a higher layer/division...

Cota
02-21-2006, 01:29 AM
oldnewbie, could you explain that a little further....I have little exposure to Div tags.

squadjot
02-21-2006, 05:06 PM
i WAS planning on using document.write(), i once saw such a generic java "template" for a flash object.. so you could open new window with a flash, and set the flashobject dynamically. (from flash within).. but the example i saw..was only about opening a new window.

1. i dont have/ cant find that java template.
2. yea the qustion is, can the javascript change the flashobject tag without releoad (if , lets say..we inititally made the flashtag by javascript)..

i'm still were i was when i started, so if anyone got any bits or tips i can use for this.. i'd be happeh.