Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   trying to put a swf file on a webpage. (http://www.programmingforums.org/showthread.php?t=10194)

demon101 Jun 6th, 2006 3:49 AM

trying to put a swf file on a webpage.
 
i have got a banner for a website. i am trying to figure out how to put it on there.

the banner is 6.2mb

here is the banner www.freewebs.com/warthogchevy69/banner.swf

and here is the website www.freewebs.com/warthogchevy69/


if someone can help me plz do.

melbolt Jun 6th, 2006 9:12 AM

Quote:

Originally Posted by demon101
i have got a banner for a website. i am trying to figure out how to put it on there.

the banner is 6.2mb

here is the banner www.freewebs.com/warthogchevy69/banner.swf

and here is the website www.freewebs.com/warthogchevy69/


if someone can help me plz do.


put this in your HTML code:

:

<embed src="http://www.freewebs.com/warthogchevy69/banner.swf">

you also have the option of using height= and width= in that tag as well if you want.

Ooble Jun 6th, 2006 7:12 PM

The correct HTML is the <object> tag. I believe the <embed> tag was created by Netscape developers before the standard, but don't quote me on that. It's suggested that you provide both, but no one uses Netscape any more, so you only really need the <object> tag. The W3C seem to think so, anyway. :)

:

<object width="{width}" height="{height}">
    <param name="movie" value="{filename}.swf">
</object>


demon101 Jun 7th, 2006 7:57 PM

i am going to be using the banner as the title on my site.

it is a flash thing not a move.

lectricpharaoh Jun 7th, 2006 8:23 PM

Don't you think 6.2 megs is a little bit excessive for a bloody banner? Even if people have broadband, that still will take a few seconds, and if your site ever gets busy, it'll get even slower. Not to mention, every time someone clicks 'refresh', it'll re-download the bloody thing, and you might run into bandwidth limits (not sure if those free ones have such limits, but I imagine so).

Uday Jun 14th, 2006 10:20 AM

Quote:

Don't you think 6.2 megs is a little bit excessive for a bloody banner? Even if people have broadband, that still will take a few seconds, and if your site ever gets busy, it'll get even slower. Not to mention, every time someone clicks 'refresh', it'll re-download the bloody thing, and you might run into bandwidth limits (not sure if those free ones have such limits, but I imagine so).
Exactly.

Putting such large animations (6.2MB) :eek: Makes the website slower and it is against good website designing rules. It is possible but it will take a lot of bandwidth and most of the users will just close since the page will take a lot of time to load and those who visited will never visit again. This fails the main objective of a good website. If it is so necessary to show it to the user then provide a link on the main page. Those who are interested will watch others won't. Problem solved.

DaWei Jun 14th, 2006 11:01 AM

Oh my poor Bell 103 modem....

melbolt Jun 14th, 2006 11:21 AM

Quote:

Originally Posted by Ooble
The correct HTML is the <object> tag. I believe the <embed> tag was created by Netscape developers before the standard, but don't quote me on that. It's suggested that you provide both, but no one uses Netscape any more, so you only really need the <object> tag. The W3C seem to think so, anyway. :)

the reason i use embed is because that is what flash itself puts in the html code when you use the publish function within the studio.

Fall Back Son Jan 22nd, 2008 6:17 PM

Re: trying to put a swf file on a webpage.
 
I found this thread in search, but I'm not sure how it relates to my problem. The code didn't work for me. I want to put up a banner also, a banner which is already the right size and everything. . it's built into the link. I want to do this in Javascript, which I understand is embedded in html. (Another question: Can I use both html and Javascript inbetween the tags for the start & end of the javascript. <script type=javascript> ? )

crawforddavid2006 Jan 23rd, 2008 8:05 PM

Re: trying to put a swf file on a webpage.
 
Quote:

Originally Posted by DaWei (Post 101292)
Oh my poor Bell 103 modem....


ROFL, but you do have a point, web sites should be user friendly, and not all users have DSL, or high speed internet of any kind


All times are GMT -5. The time now is 6:01 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC