Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 need html code

views
     
goldfries
post Feb 20 2006, 12:45 AM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




QUOTE(akira de aimbuster @ Feb 19 2006, 11:24 PM)
there are some website that got locked backgroud,when we drag the page down,the background wont move,what is the html code for it?
*
CODE

<!--
body {
background-image: url(Media/Panda_request_by_ilona.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #9FBA8F;
}
</style>


use the code above.

you can put it on every page, but it's better you put that portion from body { .. } in a CSS file.
goldfries
post Feb 20 2006, 12:56 PM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




QUOTE(kokanchai @ Feb 20 2006, 12:47 PM)
it really cool..

with wat rusty nail mention that coding..
<body background="yourimage.gif" bgproperties="fixed">

try it out..it work!
notworthy.gif  notworthy.gif
*
that one works, but bad choice my friend.

did you know why Etsuko also seconded that CSS solution instead of the one using the BODY tag?
goldfries
post Feb 20 2006, 03:04 PM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




QUOTE(kokanchai @ Feb 20 2006, 02:40 PM)
i tho this is the easy way..to do it..
*
EASIEST doesnt mean it's the BEST. and in the long run, it's actually the WORSE way.

look at what Rusty mentioned "i remember using these HTML codes way back in my notepad days"

in the past, MSIE was probably the only browser the majority use. so that's fine. but nowadays, there's many other browsers. that code just won't work, Firefox won't work with that BGPROPERTIES thingy too. smile.gif

that BGPROPERTIES code only works with MS Internet Explorer as it runs based the BGPROPERTIES extention for MSIE.

http://developertutorials.com/html-guide/d...PROPERTIES.html


and 2nd thing. now how many pages do you have? 1? 5? well changing that isn't a problem for you i guess. what if you have 20? pages?

every time you decide to change the background - you'll have to change 20 files. sure you can use crimson editor to open and do mass replace. fine. but again it still works on IE and you'll have to do 20 changes and if you do mass-replacement you'll have to make sure other codes are not affected. you also have to check if all 20 pages are changed, saved and updated.

by using CSS. you not only manage to get it to work with Firefox (Mozilla based) and other browsers. anytime you wish to change the image, just change the filename in the CSS file and all 20 pages are updated.

so which is the smarter way? smile.gif which is the easier way? smile.gif
the CSS way IS the easier and the smarter way.
goldfries
post Feb 21 2006, 11:22 AM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




QUOTE(etsuko @ Feb 21 2006, 09:49 AM)
Placing background music into a website is so so.. 5-10 years ago..? But if you feel everyone would love the music you love and wouldn't mind listening while reading your content, then it's your choice.
*
yes. those were the days where using IE and embedding midi files on it makes a page looks uber cool.

nowadays you'd better make sure your loops have a STOP function or else most people will reach and turn away once the figured out they can't off it.

yeah i know there's the VOLUME button, but it's really damn annoying. why should i turn off my volume just to view your website? smile.gif and what if i was listening to my fav MP3 files and reaching your site it's just mixing up all the sound and arrgggh - i have to stop my listening to view your site - NO WAY. smile.gif

so there ya have it. you've come by another part of web-design - put viewers into consideration.

embedding music files could make or break a site. really.

if you wish to do it. maybe have a few tunes (relaxing ones, techno just doesn't seem right tongue.gif) or even if you wish to have only 1 tune - always remember the OFF button.

don't force the user to listen to what you place on the site. again if you bring in 'volume control' to counter this, please read the above again. smile.gif why should a user go through all the hassle and sacrifice his activity just to view your site. right?

btw if you do have music embedded, do show us how it looks like so we could help you make a better site.

oh, and your site. the 2 banners on top are just too big. i'm viewing at 1024x768 and once i enter your site all i see are banners and i have to scroll down to see something.

at present, your site looks more like something that's done on a single HTML file rather than a blog engine. anyway, keep it up.

 

Change to:
| Lo-Fi Version
0.0131sec    1.48    6 queries    GZIP Disabled
Time is now: 27th November 2025 - 08:16 AM