PDA

View Full Version : how to put a .jpg or .swf in the middle of your browser-window


animator
09-04-2003, 06:37 PM
how to put a .jpg or .swf in the middle of your browser-window

not just the middle from left to right but also from bellow to above

look at my site: www.radionn.be

i want it in the middle


can someone help me?

i would be very gratefull, Filip

MotherNatrsSon
09-04-2003, 06:46 PM
I have posted this here before but I know it is what you want.

GO HERE (http://www.wpdfd.com/editorial/thebox/deadcentre3.html)

MNS

me'
09-04-2003, 06:49 PM
Originally posted by MotherNatrsSon
I have posted this here before but I know it is what you want.

GO HERE (http://www.wpdfd.com/editorial/thebox/deadcentre3.html)

MNS

That's a broken link.

MotherNatrsSon
09-04-2003, 06:52 PM
I just tried it and it worked for me fine. HERE IT IS AGAIN (http://www.wpdfd.com/editorial/thebox/deadcentre3.html)

I don't know what to say other than I just clicked on it in my original post and in the quoted part in your post and it worked both places for me.

MNS

animator
09-04-2003, 06:52 PM
Originally posted by me'
That's a broken link.

so i have to do what?

i don't know a lot about html!

i have to position it at the half of the height

if it is 400 px high

i have to position it -200.. ok?

do you have the script for this?

me'
09-04-2003, 06:53 PM
Originally posted by animator
so i have to do what?

i don't know a lot about html!

i have to position it at the half of the height

if it is 400 px high

i have to position it -200.. ok?

do you have the script for this?

Lol, I'm sorry, I wasn't talking to you :P

MNS, I'm sorry, it just worked. My internet sucks.

animator
09-04-2003, 06:53 PM
i started this thread!

can anyone help me?

animator
09-04-2003, 06:55 PM
Originally posted by me'
Lol, I'm sorry, I wasn't talking to you :P

MNS, I'm sorry, it just worked. My internet sucks.

i started this thread!

can anyone help me?

animator
09-04-2003, 06:57 PM
Originally posted by MotherNatrsSon
I just tried it and it worked for me fine. HERE IT IS AGAIN (http://www.wpdfd.com/editorial/thebox/deadcentre3.html)

I don't know what to say other than I just clicked on it in my original post and in the quoted part in your post and it worked both places for me.

MNS

so i have to do what?

i don't know a lot about html!

i have to position it at the half of the height

if it is 400 px high

i have to position it -200.. ok?

do you have the script for this?

krycek
09-04-2003, 06:58 PM
They HAVE helped you, despite your failure to click "Search"... or even read the threads on the same page as yours :rolleyes:

It's like somone asking which spanner to use for a certain task, and then asking how do they use the spanner. There is no script, it's just simple positioning. If you don't know much HTML, that's fine, we all had to start somewhere - however, go and read some tutorials so that you know the basics (there are plenty of links in these forums) and then you will understand the answers that you get :)

::] krycek [::

me'
09-04-2003, 06:59 PM
Originally posted by krycek
They HAVE helped you, despite your failure to click "Search"... or even read the threads on the same page as yours :rolleyes:

It's like somone asking which spanner to use for a certain task, and then asking how do they use the spanner. There is no script, it's just simple positioning. If you don't know much HTML, that's fine, we all had to start somewhere - however, go and read some tutorials so that you know the basics (there are plenty of links in these forums) and then you will understand the answers that you get :)

::] krycek [:: [/B]

Actually, it was just MNS. All I did was complain and apologise ;)

krycek
09-04-2003, 07:00 PM
And don't repeat your posts every couple of minutes, because that's very annoying and won't make people feel like helping you :mad:

::] krycek [::

krycek
09-04-2003, 07:00 PM
Originally posted by me'
Actually, it was just MNS. All I did was complain and apologise ;)

True :p

Kudos, MNS :)

::] krycek [::

MotherNatrsSon
09-04-2003, 07:10 PM
Originally posted by animator
i started this thread!

can anyone help me?

Yes. Did you lok at

THIS (http://www.wpdfd.com/editorial/thebox/deadcentre4.html)

It tells you how to do it. I have your page and source code and if you need, I'll put it together for you.

Basically it is this:
<div style="position: absolute; top: 50%; height: 1px; overflow: visible">
<div style="postion: absolute; left 50%; margin-left: -325px; top: -400px"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="650" HEIGHT="800" id="bliiep" ALIGN="">
<param NAME=movie VALUE="bliiep.swf"> <param NAME=quality VALUE=high> <param NAME=bgcolor VALUE=#FFFFFF> <embed src="bliiep.swf" quality=high bgcolor=#FFFFFF WIDTH="650" HEIGHT="800" NAME="bliiep" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>

</object></div></div>

I'll leave the proper formating to you.
There is a difference between "helping" and "doing it for you".

That should work. I did nt test it.

MNS

me'
09-04-2003, 07:11 PM
Here's exactly what MNS posted, but with [ code ] around it :P


<div style="position: absolute; top: 50%; height: 1px; overflow: visible">
<div style="postion: absolute; left 50%; margin-left: -325px; top: -400px"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="650" HEIGHT="800" id="bliiep" ALIGN="">
<param NAME=movie VALUE="bliiep.swf"> <param NAME=quality VALUE=high> <param NAME=bgcolor VALUE=#FFFFFF> <embed src="bliiep.swf" quality=high bgcolor=#FFFFFF WIDTH="650" HEIGHT="800" NAME="bliiep" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>

</object></div></div>


Hope that's easier to read. Don't mean to patronise also :P

me'
09-04-2003, 07:12 PM
Oh damn I made that page all wide.

Meh.

MotherNatrsSon
09-04-2003, 08:25 PM
I wonder if it worked? Must have. No other posts...

Thanks krycek and me'!! :)

MNS

animator
09-04-2003, 09:16 PM
Originally posted by MotherNatrsSon
Yes. Did you lok at

THIS (http://www.wpdfd.com/editorial/thebox/deadcentre4.html)

It tells you how to do it. I have your page and source code and if you need, I'll put it together for you.

Basically it is this:
<div style="position: absolute; top: 50%; height: 1px; overflow: visible">
<div style="postion: absolute; left 50%; margin-left: -325px; top: -400px"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="650" HEIGHT="800" id="bliiep" ALIGN="">
<param NAME=movie VALUE="bliiep.swf"> <param NAME=quality VALUE=high> <param NAME=bgcolor VALUE=#FFFFFF> <embed src="bliiep.swf" quality=high bgcolor=#FFFFFF WIDTH="650" HEIGHT="800" NAME="bliiep" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>

</object></div></div>

I'll leave the proper formating to you.
There is a difference between "helping" and "doing it for you".

That should work. I did nt test it.

MNS


eej, thanks for helping me out

i did this

<center><p>
<meta http-equiv=Content-Type content="text/html; charset=">
<TITLE>radionn</TITLE>
</HEAD>
<BODY bgcolor="#334A61">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<div style="position: absolute; top: 50%; height: 1px; overflow: visible">
<div style="postion: absolute; left 50%; margin-left: -247px; top: -123px"><object
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="495" HEIGHT="247" id="radionn" ALIGN="">
<PARAM NAME=movie VALUE="radionn.swf"> <PARAM NAME=quality VALUE=medium> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#334A61> <EMBED src="radionn.swf" quality=medium wmode=transparent bgcolor=#334A61 WIDTH="495" HEIGHT="247" NAME="radionn" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></div></div>
</p></center>
</BODY>

it's for www.radionn.be/radionn.html sorry bout that

i changed the pixels and took that script
but now it is at the bottm.. and only half of it is showing

i've got it under www.radionn.be/try.html

thanks again

MotherNatrsSon
09-04-2003, 10:37 PM
This worrks. I tested it.


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=">
<title>radionn</title> <style type="text/css" media="screen">
body { margin: 0px
}
</style>
</head>
<body bgcolor="#334A61">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<div style="position: absolute; top: 50%; width: 100%; left: 50%; height: 1px; margin-top: -123px; margin-left: -247px; overflow: visible; display: block">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="495" height="247" id="radionn" align="middle">
<param name="movie" value="radionn.swf">
<param name="quality" value="medium">
<param name="wmode" value="transparent">
<param name="bgcolor" value="#334A61">
<embed src="http://www.radionn.be/radionn.swf" quality="medium" wmode="transparent" bgcolor="#334A61" width="495" height="247" name="radionn" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
</div>
</body>
</html>


See the differences? For some reason the second div was having no effect on the <object> tag or embed tag.

:thumbsup:

MNS