PDA

View Full Version : Sizing my html


blamebob23
04-21-2005, 01:48 PM
This is probably an easy thing to overcome. I have made a flash website and I inserted into dreamweaver, like normal, but i want the browser size to be the same size as the flash doc so there are no borders around the flash doc. Ive selected the flash doc on dreamweaver and set it to 'No Borders' and also i have set all margins to "0" is page properties. What am i not doing?

blamebob23
04-21-2005, 11:28 PM
oh and here's the current uploaded html file with the flash doc on;

http://www.tourstuff.co.uk/nanfest/index.html ('http://www.tourstuff.co.uk/nanfest/index.html')


Im sorry about the size of the flash aswell... im sorting that out :P

Please help. I just want the browser to be the exact size of the flash movie. No bigger, no smaller. No white bits at the bottom or right... etc.


x

domedia
04-22-2005, 12:37 PM
I don't think you can, unless you have a splash page with a javascript link that will open a pop-up window. On your splash page, use the behaviour that will spwan a new window and size it to your flash file.

blamebob23
04-22-2005, 07:58 PM
Ah that sounds promising! How do you do that...? Or if you know of any tutorials can you link me to em :) thank you!

kate
04-22-2005, 08:07 PM
This any good!

<HTML>
<HEAD>
<TITLE>Zero Page Margins</TITLE>
<META NAME="generator" CONTENT="NoteTab">
<script>
function zeroBorders(){
theDom = dreamweaver.getDocumentDOM()
theBody = theDom.getElementsByTagName("BODY")
theBody.item(0).setAttribute("marginwidth","0")
theBody.item(0).setAttribute("marginheight","0")
theBody.item(0).setAttribute("topmargin","0")
theBody.item(0).setAttribute("leftmargin","0")
}

</script>
</HEAD>
<BODY onload=zeroBorders()>

Zero Page Margin Borders
</BODY>
</HTML>


:)

blamebob23
04-22-2005, 08:17 PM
:rolleyes:

I think im being dense... hehe... ive just created a page with an enter button on in DW. I'll link this button to the index page of my site.... but where do i put that code Kate.

Sorry Im an idiot :blink:

x

kate
04-22-2005, 08:28 PM
Put the code on every page of your document where you don't want any boarders..thats it!

:D

blamebob23
04-22-2005, 09:59 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script>
function zeroBorders(){
theDom = dreamweaver.getDocumentDOM()
theBody = theDom.getElementsByTagName("BODY")
theBody.item(0).setAttribute("marginwidth","0")
theBody.item(0).setAttribute("marginheight","0")
theBody.item(0).setAttribute("topmargin","0")
theBody.item(0).setAttribute("leftmargin","0")
}

</script>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="left">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="600" hspace="0" vspace="0" align="absmiddle">
<param name="movie" value="final.swf">
<param name="quality" value="high">
<param name="SCALE" value="noborder">
<embed src="final.swf" width="800" height="600" hspace="0" vspace="0" align="absmiddle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="noborder"></embed></object>
</div>
</body>
</html>



This is what ive got but it still doesnt seem to work. :-S Im dont use DW that much so im not that great at it. Sorry guys x