arian6
12-20-2008, 02:37 PM
hello noble assembly i will ask your expert knowledg about using css preload image in absolute position . Somebody can help me about my page exemple http://boudhatour.wapath.com/fr/kora/step2.b i have added in this page two preload image script first in javascript and second using css code . But i am beginner and i start learn about css only few days before . I try to learn css using different tutorial but there dont have always the answare of my question and some times its really heart to find it . Honestly i will tell you i am really confused about that css preload image using absolute position i dont know how to do in my document i try by my feeling but its not sure and i like know how to do please somebody can give me clear advise for i could a bit understand first wich aera in my document xhtml i could add the
div#preload-images{
position: absolue ;
overflow: hidden ;
left: -9999px ;
top: -9999px ;
height: 1px ;
width: 1px ;
}
if i understand a bit its a class declaration then need add it under the body tag ?but i am not sure about that please can you tell me if my suggestion its right or wrong ?? Below i have make an page with that css code please help me
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>pas2</title>
<style type="text/css"><!--body{cursor:crosshair}-->
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8" />
</style>
<!--code javascript preload image-->
<code>
<SCRIPT LANGUAGE="JavaScript"><
image1 = new Image(200,150);
image1.src = "http://boudhatour.wapath.com/files/kora/Step3.jpg";
image2 = new Image(114,111);
image2.src = "http://boudhatour.wapath.com/files/kora/Map01.jpg";
image3 = new Image(93,3);
image3.src = "http://boudhatour.wapath.com/files/kora/linija3.gif";
>
</script>
</code>
</head>
<body style="background-color: #800000">
<!--css code for preload image-->
<div#preload-image{
overflow:hidden;}
left:-9999px ;
top:-9999px ;
height: 1px ;
width: 1px ;
>
<img src="http://boudhatour.wapath.com/files/kora/Step2.jpg" alt="" />
<br />
<b>
<i style="color: #FFFF00">faite un pas de plus:</i>
<br />
<br />
<a href="http://boudhatour.wapath.com/fr/kora/step3.b" style="color: #FF0000">next pas3>>></a>
<br />
<a href="http://boudhatour.wapath.com/fr/home.b" style="color: #FFFF00"><<<retour a la home page</a>
<br />
<img src="http://boudhatour.wapath.com/files/linija3.gif" alt="" />
<br />
<img src="http://boudhatour.wapath.com/files/kora/Map01.jpg" alt="" />
<br />
<img src="http://boudhatour.wapath.com/files/linija3.gif" alt="" />
<br />
<div id="preload-images">
<img src="http://boudhatour.wapath.com/files/kora/Step3.jpg" width="1" height="1" alt="Step4" />
<img src="http://boudhatour.wapath.com/files/kora/Map01.jpg" width="1" height="1" alt="Map01" />
<img src="http://boudhatour.wapath.com/files/kora/linija3.gif" width="1" height="1" alt="linija3" />
</body>
</html>
thanks a lot i need your advise
div#preload-images{
position: absolue ;
overflow: hidden ;
left: -9999px ;
top: -9999px ;
height: 1px ;
width: 1px ;
}
if i understand a bit its a class declaration then need add it under the body tag ?but i am not sure about that please can you tell me if my suggestion its right or wrong ?? Below i have make an page with that css code please help me
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>pas2</title>
<style type="text/css"><!--body{cursor:crosshair}-->
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8" />
</style>
<!--code javascript preload image-->
<code>
<SCRIPT LANGUAGE="JavaScript"><
image1 = new Image(200,150);
image1.src = "http://boudhatour.wapath.com/files/kora/Step3.jpg";
image2 = new Image(114,111);
image2.src = "http://boudhatour.wapath.com/files/kora/Map01.jpg";
image3 = new Image(93,3);
image3.src = "http://boudhatour.wapath.com/files/kora/linija3.gif";
>
</script>
</code>
</head>
<body style="background-color: #800000">
<!--css code for preload image-->
<div#preload-image{
overflow:hidden;}
left:-9999px ;
top:-9999px ;
height: 1px ;
width: 1px ;
>
<img src="http://boudhatour.wapath.com/files/kora/Step2.jpg" alt="" />
<br />
<b>
<i style="color: #FFFF00">faite un pas de plus:</i>
<br />
<br />
<a href="http://boudhatour.wapath.com/fr/kora/step3.b" style="color: #FF0000">next pas3>>></a>
<br />
<a href="http://boudhatour.wapath.com/fr/home.b" style="color: #FFFF00"><<<retour a la home page</a>
<br />
<img src="http://boudhatour.wapath.com/files/linija3.gif" alt="" />
<br />
<img src="http://boudhatour.wapath.com/files/kora/Map01.jpg" alt="" />
<br />
<img src="http://boudhatour.wapath.com/files/linija3.gif" alt="" />
<br />
<div id="preload-images">
<img src="http://boudhatour.wapath.com/files/kora/Step3.jpg" width="1" height="1" alt="Step4" />
<img src="http://boudhatour.wapath.com/files/kora/Map01.jpg" width="1" height="1" alt="Map01" />
<img src="http://boudhatour.wapath.com/files/kora/linija3.gif" width="1" height="1" alt="linija3" />
</body>
</html>
thanks a lot i need your advise