SunQuest
           HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 26th, 2000, 05:52 PM
Jimmy_the_kid Jimmy_the_kid is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 1 Jimmy_the_kid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am attempting to embed a flash file, and I can do it two ways, one where it is the only object on the page... in which case I can specify its width and height as percentages...

But if I embed it only taking up part of the page... so I can have other stuff on the page.. I can not define using percentages...
I thought about possibly using a parameter to get the page width and height, but I am not sure how to do that...

Any ideas on how to use percentages to embed this thing as only part of the page??? I would be willing to spend a few hours helping you out with any question you have if you find me a working answer to this... thanks for your time and brainpower!

------------------
if you help me with anything I will personally take it upon myself to spend at least two hours researching/answering a questions for you! Thanks!

Reply With Quote
  #2  
Old May 26th, 2000, 09:43 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi Jimmy , not sure what you want but....

imagine you set a <div> like > <div id="flashDiv" style="position:absolute;z-index:10;width://widthof object//;height://height of object//;"><embed flash stuff here..... </div>

then onload call function init()

function init(){
pageWidth=(document.layers)?innerWidth:document.body.offsetWidth;
pageHeight=(document.layers)?innerHeight:document.body.offsetHeight;

flashCont=(document.layers)?eval('document.flashDiv'):eval('flashDiv.style')
flashCont.left=//set left//
flashCont.top=//set top//

}

Now you can position absolutely by making flashCont.left=100
flashCont.top=100

or relative to the page by
flashCont.left=pageWidth - //if flash object is 500 wide setting 250 here will center it//
flashCont.top=pageHeight - //if flash object is 200 high setting 100 here will center it vertically.


Hope that helps? if not give me a hoy on simon@firepages.com.au (looking for somebody to do the odd flash job!)



------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > EMBED challenge (using flash, but that's not the difficulty)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway