Click to See Complete Forum and Search --> : movable graphic elements
xclone
10-24-2004, 05:45 AM
Hello world,
I'm an absolute beginner. I just hook up with javascript caus I need a nice element I found on this (german) page (I'm german, too)
http://www.kultur-netz.de/ErsteHilfe/selfhtml7/tfcba.htm
Just click on one of the areas shown in this site and you can move it away. Another click and you let it drop!
I want to use this stuff and got it working for me. I tried to use graphics in the backround of these elements, but it didn't work.
Does anyone got an idea, how to manage it? I would be grateful for complete code examples.
Thank you - and greetings from Berlin!
claire_m
10-24-2004, 06:25 AM
You would use, background-image: url(image.jpg);
example:
<div id="div2" style="position:absolute; top:30px; left:300px; width:300px; height:400px; background-color:#FFDDDD; color:#660000; font-family:Arial; font-size:9pt; font-weight:bold; padding:10px; background-image: url(image.jpg); border: 1px none #000000;">
<layer id="lay2" width=300 height=400 bgcolor=#FFDDDD>
Hier steht der Inhalt von Bereich 2.
</layer>
</div>
xclone
10-24-2004, 09:31 AM
Hi claire,
I was really surprised about your immediate answer!
Thank you, thank you, thank you!
I waited for an answer in a german board for ... don't think about it! I Just say thank you!
Have a nice day!
Vladdy
10-24-2004, 10:17 AM
This code is IE only :rolleyes: and if user has JS disabled (or use real browsers) he/she would not be able to see the content.
xclone
10-24-2004, 10:23 AM
Thank you for this advice!
I know that this code is for IE
I can deal with it! And anybody who wants tovisit this side will have to do, too. It's just a couple of people woh will have a look and I will tell them.
Thank you for your notice anyway! ;)
Vladdy
10-24-2004, 11:12 AM
Originally posted by xclone
I can deal with it! And anybody who wants tovisit this side will have to do, too. It's just a couple of people woh will have a look and I will tell them.
Seems like you do not understand what web is about :rolleyes:
xclone
10-24-2004, 11:24 AM
No, I do understand. It wouldn't be okay, if my "work" should be for everyone. But it is not. It's just for some special people.
I know them - an I can tell them!
Not everything that is created for the world wide web is meant to be seen by everyone. Therefor someone invented the "password" ;)
But you're right in niticing it here, cause anyone could see my question and the answer. So anyone should know about the problem with it!
Vladdy
10-24-2004, 11:55 AM
Friends do not make friends use IE :D :D :D