Problema cu reflection.js
Last Updated: Jan 10 2008 23:25, Started by
VladB1989
, Jan 10 2008 21:39
·
0

#1
Posted 10 January 2008 - 21:39

Vreau sa fac un template pt galeria Pixelpost. Am vrut sa folosesc reflection.js. functioneaza bine.. toate bune si frumoase pana cand am facut eu un script care modifica latimea unui div. si acum nu mai functioneaza pagina... v-as ruga sa va uitati peste cod si sa indicati eventualele greseli.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Document</title> <link rel="stylesheet" href="templates/photoflower/src/style.css" type="text/css" /> <script type="text/javascript"> function setWidth() { var sum=400+<IMAGE_WIDTH>; document.getElementById("group").style.width = sum+"px"; } </script> <script type="text/javascript" src="templates/photoflower/src/reflection.js"></script> <script type="text/javascript" src="templates/photoflower/src/prototype.js"></script> </head> <body onload="setWidth()"> <div id="group"> <img src="templates/photoflower/img/img_left.jpg" class="reflect rheight30 imgleft" alt="" /> <img src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" id="photo" /> <img src="templates/photoflower/img/img_right.jpg" class="reflect rheight30 imgright" alt="" /> </div> <div id="container"> <span id="author_comm">dasdasd</span> <a href="java script:void(0)" onclick="divWidth();">sadasd</a> </div> </body> </html>Pagina este in constructie. Codul este valid atat din pct de vedere xhtml, cat si css. |
#2
Posted 10 January 2008 - 23:25

Problema rezolvata. am folosit o alta functie window.onload pt setwidth si abia dupa aceea am pus linkul catre reflection. rog un moderator sa inchida topicul.
|
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users