Jump to content

PHP Mysql - How to fetch records inthis div listbox?


sayedsohail

Recommended Posts

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.