![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
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. |
|
|
|
|
|
#2 | |
|
Hobbyist Programmer
|
Quote:
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.
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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> |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
i am going to be using the banner as the title on my site.
it is a flash thing not a move. |
|
|
|
|
|
#5 |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,034
Rep Power: 5
![]() |
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).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
#6 | |
|
Programmer
Join Date: Oct 2005
Location: India
Posts: 30
Rep Power: 0
![]() |
Quote:
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. |
|
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Oh my poor Bell 103 modem....
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#8 | |
|
Hobbyist Programmer
|
Quote:
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
|
#9 |
|
Professional Programmer
Join Date: Oct 2006
Posts: 258
Rep Power: 2
![]() |
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> ? )
|
|
|
|
|
|
#10 |
|
Expert Programmer
|
Re: trying to put a swf file on a webpage.
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
__________________
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|