Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 need html code

views
     
TSakira de aimbuster
post Feb 19 2006, 11:24 PM, updated 20y ago

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


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?

edit:okay,thanks to everyone,I solved 1st question biggrin.gif

NEW PROBLEM: I know we can put background mucis into our webpage. However it will restart everytime i click on other link to another page of my website. ANyway to make it keep playing the same song,as long as the visitor is inside my webpage? What is the code for it?


a new question, how to make a picture change to another picture when cursor moved on it?

For example a button...(in html please ><)

This post has been edited by akira de aimbuster: Feb 28 2006, 12:07 AM
TSakira de aimbuster
post Feb 19 2006, 11:48 PM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


bump...help pls ><
AaronZe
post Feb 19 2006, 11:52 PM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


what website is that? link please....need an example...
TSakira de aimbuster
post Feb 19 2006, 11:54 PM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


Edit : http://sky2live.com/main.htm

Here is one of them

This post has been edited by akira de aimbuster: Feb 19 2006, 11:55 PM
AaronZe
post Feb 19 2006, 11:58 PM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


Well, that's not because of any code, it's because that that's the page length for the page, nothing goes beyond that, means no more content after the image of that panda, that's why you cannot scroll down...there is not even a scroll bar there....

take a look at this page in the same site : http://sky2live.com/link.htm
it has a scroll bar and you can scroll down because the content there is long and cant fit into the window....
TSakira de aimbuster
post Feb 20 2006, 12:00 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


hmm...i see,thanks i will try to mod it now,thanks.
TSakira de aimbuster
post Feb 20 2006, 12:03 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


I have another question,Ifmy content is too long for my background,it will simply deplicate another one at the bottom. How do i measure that thetre is one 1 backgroud?
WaCKy-Angel
post Feb 20 2006, 12:07 AM

PeACe~~
*********
All Stars
21,961 posts

Joined: Dec 2004
From: KL



Actually there's such html....I used it last time..
But the code i cant remember anymore.

Its actually using javascript to do that.
U can try www.javascript.com to search what u want
AaronZe
post Feb 20 2006, 12:13 AM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


QUOTE(akira de aimbuster @ Feb 20 2006, 12:03 AM)
I have another question,Ifmy content is too long for my background,it will simply deplicate another one at the bottom. How do i measure that thetre is one 1 backgroud?
*
I dont understand....... sweat.gif
TSakira de aimbuster
post Feb 20 2006, 12:15 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


QUOTE(AaronZe @ Feb 20 2006, 12:13 AM)
I dont understand....... sweat.gif
*
hmm...let say the background lenght is 'abcdefg'
when my site's content over the lenght ,it will repeat like 'abcdefg abcde...'

so,it cant give me the effect i want huh.gif
TSakira de aimbuster
post Feb 20 2006, 12:16 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


QUOTE(WaCKy-Angel @ Feb 20 2006, 12:07 AM)
Actually there's such html....I used it last time..
But the code i cant remember anymore.

Its actually using javascript to do that.
U can try www.javascript.com to search what u want
*
WAW,so messy website cry.gif

Can you please kindly search it for me? I know ntg about java ><
AaronZe
post Feb 20 2006, 12:22 AM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


QUOTE(akira de aimbuster @ Feb 20 2006, 12:15 AM)
hmm...let say the background lenght is 'abcdefg'
when my site's content over the lenght ,it will repeat like 'abcdefg abcde...'

so,it cant give me the effect i want  huh.gif
*
oic....then you got to change your blogskin(assuming you are talking about your blog) to those that have frame in it where your posts will be in the box with scroll bar....you can find plenty of blogger skins here >> www.blogskins.com
TSakira de aimbuster
post Feb 20 2006, 12:28 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


QUOTE(AaronZe @ Feb 20 2006, 12:22 AM)
oic....then you got to change your blogskin(assuming you are talking about your blog) to those that have frame in it where your posts will be in the box with scroll bar....you can find plenty of blogger skins here >> www.blogskins.com
*
lol,sorry for didnt mention,its for my website..it havent show up yet >.<

So any way?
AaronZe
post Feb 20 2006, 12:36 AM

Getting Started
**
Junior Member
135 posts

Joined: Aug 2005


QUOTE(akira de aimbuster @ Feb 20 2006, 12:28 AM)
lol,sorry for didnt mention,its for my website..it havent show up yet >.<

So any way?
*
Then you got to use the iframe code

example here
CODE
<html>
<head><title>My website</title><head>
<body>
<iframe src="http://forum.lowyat.net" >
</iframe>
</body>
</html>


copy those codes into Notepad and save as "whatevername.html" then drag the file into a webbrowser smile.gif

edit: lyn.net removed my code.... sweat.gif

This post has been edited by AaronZe: Feb 20 2006, 12:44 AM
WaCKy-Angel
post Feb 20 2006, 12:39 AM

PeACe~~
*********
All Stars
21,961 posts

Joined: Dec 2004
From: KL



Uhm...u doing school project?
What application u using to make the website?
Uh i think that thing u want can be set using any common website developer tools.
TSakira de aimbuster
post Feb 20 2006, 12:42 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


QUOTE(AaronZe @ Feb 20 2006, 12:36 AM)
Then you got to use the [bad html removed] code

example here
CODE
<html>
<head><title>My website</title><head>
<body>
<iframe src="http://forum.lowyat.net" >
</iframe>
</body>
</html>


copy those codes into Notepad and save as "whatevername.html" then drag the file into a webbrowser  smile.gif
*
omg,i am getting blur now,so i need to paste this into m website template?
TSakira de aimbuster
post Feb 20 2006, 12:43 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


QUOTE(WaCKy-Angel @ Feb 20 2006, 12:39 AM)
Uhm...u doing school project?
What application u using to make the website?
Uh i think that thing u want can be set using any common website developer tools.
*
for fun and for adsense blush.gif
I am now using front page and dreamweaver ,but not so use to dreamweaver yet..

mind to tell me how to set? front page i cant found...
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.
TSakira de aimbuster
post Feb 20 2006, 12:48 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


ARR...evil!! my mom is yelling at me now,gtg...gonna try it tmr thanks goldfires and others..

PLS keep posting other methods ,,thanks!
Rusty Nail
post Feb 20 2006, 09:33 AM

Why am I still here?
*******
Senior Member
4,880 posts

Joined: Jan 2003
From: Petaling Jaya



i remember using these HTML codes way back in my notepad days
the code that you need to add is
<body background="yourimage.gif" bgproperties="fixed">
important property is bolded.

http://www.pageresource.com/html/fixedbg.htm
http://www.developingwebs.net/html/fixedbackground.php
etsuko
post Feb 20 2006, 09:44 AM

Spaced out person
Group Icon
Elite
4,210 posts

Joined: Jan 2003
From: Malaysia


LOL! try the one controlled via CSS as suggested by goldfires.

It was funny scrolling down and seeing who actually would finally speak up on the CSS method. tongue.gif
eyeball
post Feb 20 2006, 12:12 PM

Casual
***
Junior Member
481 posts

Joined: Sep 2005
From: Kuala Lumpur



use frontpage ... right click .. properties ... click on watermarked background ..

i think thats what u want .
kokanchai
post Feb 20 2006, 12:47 PM

On my way
****
Senior Member
645 posts

Joined: Dec 2005
From: -----Somewhere Down to Earth-------

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
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?
kokanchai
post Feb 20 2006, 02:40 PM

On my way
****
Senior Member
645 posts

Joined: Dec 2005
From: -----Somewhere Down to Earth-------


huh?why?

explain it please..

i tho this is the easy way..to do it..
TSakira de aimbuster
post Feb 20 2006, 02:49 PM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


QUOTE(Rusty Nail @ Feb 20 2006, 09:33 AM)
i remember using these HTML codes way back in my notepad days
the code that you need to add is
<body background="yourimage.gif" bgproperties="fixed">
important property is bolded.

http://www.pageresource.com/html/fixedbg.htm
http://www.developingwebs.net/html/fixedbackground.php
*
done smile.gif
thanks
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.
etsuko
post Feb 20 2006, 05:52 PM

Spaced out person
Group Icon
Elite
4,210 posts

Joined: Jan 2003
From: Malaysia


*nod nod* like what ^- he said.. LOL tongue.gif

anyway, I'm wondering if colleges are still just teaching basic tables and lecturers not caring about website standards.

everyone should learn CSS.. it might not be as easy as tables at first, but you'll see the other differences or advantages as mentioned above. smile.gif

Cheers.
Rusty Nail
post Feb 20 2006, 05:56 PM

Why am I still here?
*******
Senior Member
4,880 posts

Joined: Jan 2003
From: Petaling Jaya



^i see...
thanks for the enlightenment. i'll keep that in mind. smile.gif
ikram_zidane
post Feb 20 2006, 06:35 PM

Casual
***
Junior Member
489 posts

Joined: Dec 2004
From: malaysia


i think css will do it...
CODE
body { background-image: url(image.jpg); background-repeat: no-repeat; background-position: bottom right; }

or
CODE
background-attachment: fixed;


here the source code for the panda background..
CODE
body {
background-image: url(Media/Panda_request_by_ilona.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #9FBA8F;
}


This post has been edited by ikram_zidane: Feb 20 2006, 06:36 PM
TSakira de aimbuster
post Feb 21 2006, 09:02 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


Hi all,new question updated >.<
etsuko
post Feb 21 2006, 09:49 AM

Spaced out person
Group Icon
Elite
4,210 posts

Joined: Jan 2003
From: Malaysia


QUOTE(akira de aimbuster @ Feb 19 2006, 11:24 PM)
NEW PROBLEM: I know we can put background mucis into our webpage. However it will restart everytime i click on other link to another page of my website. ANyway to make it keep playing the same song,as long as the visitor is inside my webpage? What is the code for it?
*

Yes, it will always restart when you load another page unless you put it in a frame on its own and it'll loop annoyingly for every person to hear.

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.
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.
TSakira de aimbuster
post Feb 21 2006, 12:47 PM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


Hmm...I just think about it,not really want to use it smile.gif
For example i wont really use the locked backgroud...Not now yet
I try to think anything that is possible to make the site wonderful.

So any good idea that is special?
etsuko
post Feb 21 2006, 08:02 PM

Spaced out person
Group Icon
Elite
4,210 posts

Joined: Jan 2003
From: Malaysia


Special.. hmm.. anything Web 3.0 will be special.. LOL

You know what'll be special coming from a person who's learning to do websites properly..

a fully validated and website standards site that is usable and accessible.. *dreams*
TSakira de aimbuster
post Feb 28 2006, 12:06 AM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


a new question, how to make a picture change to another picture when cursor moved on it?

For example a button...(in html please ><)
sinx
post Feb 28 2006, 10:20 AM

New Member
*
Junior Member
15 posts

Joined: Aug 2005


QUOTE(akira de aimbuster @ Feb 28 2006, 12:06 AM)
a new question, how to make a picture change to another picture when cursor moved on it?

For example a button...(in html please ><)
*
Sample Code:

CODE
<img src="Default_Image.gif" onmouseover="this.src='Other_Image.gif'" onmouseout="this.src='Default_Image.gif'">



etsuko
post Feb 28 2006, 12:35 PM

Spaced out person
Group Icon
Elite
4,210 posts

Joined: Jan 2003
From: Malaysia


QUOTE(akira de aimbuster @ Feb 19 2006, 11:24 PM)
a new question, how to make a picture change to another picture when cursor moved on it?

For example a button...(in html please ><)
*
there's the ol Javascript method..

or the more modern LI menus accompanied with the CSS properties a:link and a:hover states.
TSakira de aimbuster
post Feb 28 2006, 12:49 PM

しごと~
*******
Senior Member
3,500 posts

Joined: Jan 2003


QUOTE(etsuko @ Feb 28 2006, 12:35 PM)
there's the ol Javascript method..

or the more modern LI menus accompanied with the CSS properties a:link and a:hover states.
*
Is this the old method you mean?
QUOTE(sinx @ Feb 28 2006, 10:20 AM)
CODE
<img src="Default_Image.gif" onmouseover="this.src='Other_Image.gif'" onmouseout="this.src='Default_Image.gif'">

*
etsuko
post Feb 28 2006, 03:10 PM

Spaced out person
Group Icon
Elite
4,210 posts

Joined: Jan 2003
From: Malaysia


That's Javascript for you..

 

Change to:
| Lo-Fi Version
0.0194sec    0.24    5 queries    GZIP Disabled
Time is now: 26th November 2025 - 09:43 AM