Click here to Skip to main content
16,011,647 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: encryption Pin
Jonathan Austin15-Feb-03 19:33
Jonathan Austin15-Feb-03 19:33 
GeneralRe: encryption Pin
Sarvesvara (BVKS) Dasa15-Feb-03 20:30
Sarvesvara (BVKS) Dasa15-Feb-03 20:30 
GeneralRe: encryption Pin
Sarvesvara (BVKS) Dasa16-Feb-03 18:54
Sarvesvara (BVKS) Dasa16-Feb-03 18:54 
GeneralRe: encryption Pin
Vasudevan Deepak Kumar17-Feb-03 18:37
Vasudevan Deepak Kumar17-Feb-03 18:37 
GeneralRe: encryption Pin
Sarvesvara (BVKS) Dasa17-Feb-03 22:56
Sarvesvara (BVKS) Dasa17-Feb-03 22:56 
Generalmeta tags Pin
Sarvesvara (BVKS) Dasa15-Feb-03 2:18
Sarvesvara (BVKS) Dasa15-Feb-03 2:18 
GeneralProblem with Html Dropdown and JavaScript Pin
Vasudevan Deepak Kumar14-Feb-03 19:35
Vasudevan Deepak Kumar14-Feb-03 19:35 
GeneralRe: Problem with Html Dropdown and JavaScript Pin
Jonavis19-Feb-03 22:26
Jonavis19-Feb-03 22:26 
well....to be honest with you..the way you want to do this...its pretty mucho NOT POSSIBLE (at least as far as I know). But...the good news is...that I found a way around it.(if I were in your position, it'd work for me)

so here it goes..

since you cant apply mouseover events to the <option></option> tag..what I did was recreate with layers and images a dropdown list. Assuming that you are using some sort of dynamic script that will do all the anoying job, this is what I cam up with. I have an INPUT box called "selectbox" with an inicial value of "select a value". Next to it I put an image of a pulldown-menu-arrow which is a link that when clicked makes the layer "Layer" visible. Within Layer there is a table that contains, in rows, the values of your list. Each of these rows contains a linked value that when it is moseovered, makes another layer visible (Layer1)- Layer1 shows the description of the mouseovered item. When any of the items are clicked, the input box "selectbox" recieves the value of that item and finally hides Layer.

sounds confusing???
dont worry...Ive never been much of a teacher..so heres the script...

ready to work..just copy/paste it in an html and run it..you'll see,..

hope it works..luck.

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>

<body >


<form name="frm" method="get" action="">
<table width=289>
<tr>
<td width="162">
<nobr><input name="selectbox" type="text" value="select a value"><a href="javascript:void(0);" onClick="MM_showHideLayers('Layer','','show')"><img src="http://www.radiostatic.net/jon/help/arrow.gif" border=0 align="absmiddle"></a></nobr><br>
<div id="Layer" style="border: 1px solid #CCCCCC; position:relative; width:100%; height:100; z-index:1; overflow: auto; visibility: hidden;">
<table cellpadding=0 cellspacing="0" border=0>
<tr>
<td><a href="javascript:void(0);" onCLick="javascript:frm.selectbox.value='1';MM_showHideLayers('Layer1','','hide')" onmouseout="MM_showHideLayers('Layer1','','hide')" onmouseover="MM_showHideLayers('Layer1','','show');document.all.Layer1.innerHTML='<marquee>Description 1</marquee>';">1</a></td>
</tr>
<tr>
<td><a href="javascript:void(0);" onCLick="javascript:frm.selectbox.value='2';MM_showHideLayers('Layer1','','hide')" onmouseout="MM_showHideLayers('Layer1','','hide')" onmouseover="MM_showHideLayers('Layer1','','show');document.all.Layer1.innerHTML='<marquee>Description 2</marquee>';">2</a></td>
</tr>
<tr>
<td><a href="javascript:void(0);" onCLick="javascript:frm.selectbox.value='3';MM_showHideLayers('Layer1','','hide')" onmouseout="MM_showHideLayers('Layer1','','hide')" onmouseover="MM_showHideLayers('Layer1','','show');document.all.Layer1.innerHTML='<marquee>Description 3</marquee>';">3</a></td>
</tr>
<tr>
<td><a href="javascript:void(0);" onCLick="javascript:frm.selectbox.value='4';MM_showHideLayers('Layer1','','hide')" onmouseout="MM_showHideLayers('Layer1','','hide')" onmouseover="MM_showHideLayers('Layer1','','show');document.all.Layer1.innerHTML='<marquee>Description 4</marquee>';">4</a></td>
</tr>
</table>
</div>
</td>
<td width="115">
<div id="Layer1" style="z-index:2; width:100%;height:100%; background:aliceblue"></div>
</td>
</tr>
</table>
</form>
</body>
</html>


<a href="http://www.radiostatic.net/jon/index.html" target=_new>GET TO KNOW ME</a>
Generaltwo simple questions: DataGrid Pin
devvvy14-Feb-03 18:06
devvvy14-Feb-03 18:06 
GeneralRe: two simple questions: DataGrid Pin
Jeremy Oldham15-Feb-03 6:24
Jeremy Oldham15-Feb-03 6:24 
GeneralRe: two simple questions: DataGrid Pin
Anonymous15-Feb-03 17:55
Anonymous15-Feb-03 17:55 
GeneralRe: two simple questions: DataGrid Pin
Jeremy Oldham15-Feb-03 18:21
Jeremy Oldham15-Feb-03 18:21 
GeneralRe: two simple questions: DataGrid Pin
Jeremy Oldham16-Feb-03 8:27
Jeremy Oldham16-Feb-03 8:27 
Generaltried the code... same old problem remained unresolved... help! Pin
devvvy17-Feb-03 4:35
devvvy17-Feb-03 4:35 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
Jeremy Oldham17-Feb-03 14:29
Jeremy Oldham17-Feb-03 14:29 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
devvvy17-Feb-03 19:40
devvvy17-Feb-03 19:40 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
devvvy17-Feb-03 19:54
devvvy17-Feb-03 19:54 
GeneralHelp! error: Object required "this" Pin
devvvy17-Feb-03 22:13
devvvy17-Feb-03 22:13 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
Jeremy Oldham18-Feb-03 6:47
Jeremy Oldham18-Feb-03 6:47 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
devvvy18-Feb-03 13:04
devvvy18-Feb-03 13:04 
GeneralRe: tried the code... same old problem remained unresolved... help! Pin
devvvy18-Feb-03 15:24
devvvy18-Feb-03 15:24 
GeneralRe: two simple questions: DataGrid Pin
devvvy17-Feb-03 20:43
devvvy17-Feb-03 20:43 
QuestionAdding video to the Web page?? Pin
Kant14-Feb-03 13:26
Kant14-Feb-03 13:26 
AnswerRe: Adding video to the Web page?? Pin
devvvy17-Feb-03 4:30
devvvy17-Feb-03 4:30 
QuestionHow does one go about proposing a new HTML tag? Pin
Ray Cassick13-Feb-03 5:18
Ray Cassick13-Feb-03 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.