sayedsohail Posted June 10, 2007 Share Posted June 10, 2007 hi everyone, I found this code interesting and wish to use for my project, but i just wondering how do i fetch records in this nested div tags. Please help. <html> <head> <title>Build DHTML Select List</title> <script type="text/javascript"> currentSelection = null function flyOver(o) { if (o.className!="selectedState") { o.className = "overState" } } function flyOut(o) { if (o.className!="selectedState") { o.className = "defaultState" } } function selectMe(o) { if (currentSelection != null) { currentSelection.className = "defaultState" } o.className = "selectedState" currentSelection = o } </script> <style type="text/css"> div.defaultState{background-color:#ffffff;color:#000000;cursor:default} div.overState {background-color:#3333cc;color:#ffffff;cursor:pointer;cursor:hand} div.selectedState{background-color:#ffff00;cursor:default} </style> </head> <body> <div style="background-color:#ffffff;position:absolute;top:30px;left:50px;width:350px;border:1px black solid;height:180px;overflow:auto"> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> <div style="margin-bottom:4px;width:100%" onmouseover="flyOver(this)" onmouseout="flyOut(this)" onclick="selectMe(this)">Click me ! Click me ! Click me ! Click me !</div> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/54965-php-mysql-how-to-fetch-records-inthis-div-listbox/ Share on other sites More sharing options...
sayedsohail Posted June 10, 2007 Author Share Posted June 10, 2007 Anyone there who can help. Link to comment https://forums.phpfreaks.com/topic/54965-php-mysql-how-to-fetch-records-inthis-div-listbox/#findComment-271994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.