A lil more with DHTML & PHP (please look at)
| From: | Alex Behrens | Date: | Sat, 04 Nov 2000 19:11:06 +0000 |
| Subject: | A lil more with DHTML & PHP (please look at) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23722@lists.php.net to get a copy of this message | ||
Hey,
This is a followup to my previous message about using DHTML and php/mysql, I
know its a bit off topic but I think someone can help me, since it has to do
with php coding.
I have a script setup, very simple:
http://www.hardware-unlimited.com/reviews1.php3
When you click the Description link it makes a layer visible at the bottom
and you can close the layer as well, but the problem I am having is
positioning, I can't get it so it displays right after the review (and yes
the description is the same for both reviews, that will be changed later :)
If someone can help me make it so I can add the layer code within a while
statement that would be great, here is the chunch of code for the layers:
while($a=mysql_fetch_array($r)) {
printf ("<div style='position: relative; visibility: visible;'>- <a
href=\"%s\">%s</a> (Written by: <a href=\"mailto:%s\">%s</a>) - [<a href='#'
onClick='window.show(\"myId\")'>Description</a>]</div>",$a["url"],$a["name"]
,$a["email"],$a["author"]);
}
printf ("<div id='myId' style='position: relative; visibility:
hidden;'>Hidden Layer<br>[<a href='#'
onClick='window.hide(\"myId\")'>x</a>]</div>");
I need to be able to move the last line into the while statement but it
gives me errors. Also, I need to add a variable for the <div id='blah' on
the last line so if you need to add a variable statement at the end that
might work.
Any suggestions would help, thanks!
Thanks!
--------------------------------------------
-Alex "Big Al" Behrens
E-mail: bigal@3d-unlimited.com
Phone: 651-482-8779
Fax: 651-482-1391
Pager: 612-740-2162
ICQ: 3969599
Owner of the 3D-Unlimited Network:
http://www.3d-unlimited.com
Send News:
news@3d-unlimited.com