If you get a value within a loop
Question: How do I display a value in a circle in a div that needs to pop up?
For example I $records array also has $records["QQ"] how when the user click on this TR, automatically will this TR $records["QQ" value to the pop-up div inside
JScript Code
function Popuserdetail (x) { var popUp = document.getElementById ("Popuserdetail"); var h = (x.rowindex) *20; popup.style.top= + H + "px"; Popup.style.left= "142px"; Popup.style.width= "200px"; Popup.style.height= "100px"; popup.style.visibility= "visible"; }
PHP Code
while ($records = Mysql_fetch_array ($rows)) {$arr = CT ($records [' UniqueID ']); $fileLastUploadTime = $arr [1]; print ' '. St ($records [' Lastt '], $fileLastUploadTime). ' '. $records [' Barname ']. ' '. $records [' Lastlogin ']. ' '. Date ("Y-m-d h:i:s", $arr [1]). ' '. $records [' Endtm ']. ' '. $arr [0]. ' '. $records [' Version ']. ' '; } print 'D
Customer Number: |
|
Initial login: |
|
Customer Address: |
|
Contact QQ: |
|
';p rint ' home | Prev | Next Page | Last
'. $total. ' Record current '. $pageId. ' Page total ' $pageCount. ' Page';
------Solution--------------------
print '
Set an ID
print ' ...Contact QQ:';
And then in the JS function
function Popuserdetail (x, QQ) {
var popUp = document.getElementById ("Popuserdetail");
var h = (x.rowindex) *20;
Popup.getelementbyid (' QQ '). InnerText = QQ;
popup.style.top= + H + "px";
Popup.style.left= "142px";
Popup.style.width= "200px";
Popup.style.height= "100px";
popup.style.visibility= "visible";
}
Is that what this means? Or did I twist your mind?
------Solution--------------------