<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>&gt; From: riegel@clearimageonline.com<BR>&gt; Subject: Re: [Javascript] Code optimization<BR>&gt; Date: Mon, 14 Aug 2006 17:52:43 -0400<BR>&gt; To: javascript@LaTech.edu<BR>&gt; <BR>&gt; Hello,<BR>&gt; <BR>&gt; I&nbsp;need&nbsp;some&nbsp;help&nbsp;creating&nbsp;an&nbsp;2&nbsp;onclick&nbsp;events&nbsp;for&nbsp;a&nbsp;div.&nbsp;You&nbsp;can&nbsp;see&nbsp;&nbsp;<BR>&gt; my&nbsp;sample&nbsp;code&nbsp;at:<BR>&gt; <BR>&gt; http://clearimageonline.com/projects/filebrowser/filebrowser.html<BR>&gt; <BR>&gt; If&nbsp;you&nbsp;look&nbsp;at&nbsp;the&nbsp;page&nbsp;listed&nbsp;above&nbsp;you&nbsp;can&nbsp;see&nbsp;my&nbsp;markup&nbsp;has&nbsp;been&nbsp;&nbsp;<BR>&gt; simplified&nbsp;to&nbsp;a&nbsp;div&nbsp;and&nbsp;many&nbsp;child&nbsp;div's.&nbsp;I&nbsp;am&nbsp;using&nbsp;javascript&nbsp;to&nbsp;&nbsp;<BR>&gt; create&nbsp;the&nbsp;contents&nbsp;of&nbsp;the&nbsp;div's,&nbsp;It&nbsp;works&nbsp;as&nbsp;expect&nbsp;so&nbsp;far.&nbsp;What&nbsp;I&nbsp;&nbsp;<BR>&gt; would&nbsp;like&nbsp;to&nbsp;do&nbsp;is&nbsp;create&nbsp;an&nbsp;event&nbsp;for&nbsp;clicking&nbsp;on&nbsp;the&nbsp;resulting&nbsp;&nbsp;<BR>&gt; image&nbsp;and&nbsp;a&nbsp;separate&nbsp;event&nbsp;for&nbsp;clicking&nbsp;on&nbsp;the&nbsp;text.&nbsp;Also&nbsp;as&nbsp;a&nbsp;side&nbsp;&nbsp;<BR>&gt; note&nbsp;is&nbsp;there&nbsp;a&nbsp;way&nbsp;to&nbsp;make&nbsp;the&nbsp;mouse&nbsp;look&nbsp;like&nbsp;it&nbsp;is&nbsp;hovering&nbsp;a&nbsp;link&nbsp;&nbsp;<BR>&gt; instead&nbsp;of&nbsp;text?<BR>&gt; <BR>&gt; Thanks&nbsp;for&nbsp;any&nbsp;help.<BR>&nbsp;<BR>&gt; Terry<BR>
&nbsp;<BR>
I like the looks of it. Nice icons. Nice item-selected color. Nicely handled click &amp;&nbsp;<FONT><FONT>dblclick.</FONT></FONT><BR>
Yes, the text cursor looks ugly. But two "<FONT>onclick"</FONT> events? You don't need that!<BR>
&nbsp;<BR>
Not sure if I really understand your&nbsp;demand but certainly:<BR>
What you need is, one "click" event, handling two separate/different functions at best.<BR>
&nbsp;<BR>
You can set the cursor directly from <FONT>css,</FONT> with: "cursor: pointer", -no script needed.<BR>
&nbsp;<BR>
But soon, you will need click select&nbsp;to deselect previous, soon after you will need dblclick<BR>
prevent text selection. Or later, how to multiple select. And at the end, what about keyboard<BR>
support, tab select etc? DIV elements can't receive focus. So, soon after you will find your self<BR>
wondering how about wrapping them divs in&nbsp;ancors tags so that files can receive tabbed focus?<BR>
And so on....<BR>
&nbsp;<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Troy&nbsp;III<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressive&nbsp;art&nbsp;enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><br /><hr />Express yourself instantly with Windows Live Messenger! <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=joinmsncom/messenger' target='_new'>Windows Live Messenger!</a></body>
</html>