Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

js+ css question thanks

Status
Not open for further replies.

melnet

Programmer
Jul 8, 2003
77
HK
hi
rs.MoveFirst
while Not rs.EOF
%>
<tr>
<a href="#" onClick="td_display('org<%=i%>', <%=ttl%>)">

function td_display(td, num){

for (i=0;i<=num;i++){
temp=eval("org" + i);
if (temp==td){
tdinvisible=eval(td+".style");
tdinvisible.display=""
}else{
tdinvisible=eval(td+".style");
tdinvisible.display="none";
}
}
}

i did temp=eval("org" + i);,
temp="org" + i;,
temp=("org" + i);
but it still didn't work
so any method to do ?!

thanks a lot.....
 
the code:

<a href="#" onClick="td_display('org<%=i%>', <%=ttl%>)">

function td_display(td, num){

for (i=0;i<=num;i++){
temp=eval("org" + i);
if (temp==td){
tdinvisible=eval(td+".style");
tdinvisible.display=""
}else{
tdinvisible=eval(td+".style");
tdinvisible.display="none";
}
}
}
org<%=i%>, <%=ttl%>
i tested in fucntion td_display, for loop and if.
they work

thanks~
 
oh... sorry...
to assme the page has three images. they are invisible. when i click one of the images, that image will visible, other images will be invisible. when i click another image, that image will visible and other images inivsible

the question is when i click one of images, it has no response to me.

i tried to test them:
temp=eval("org" + i);,
temp="org" + i;,
temp=("org" + i);

it didn't work

<%=i%> and <%=ttl%>

i put them in funciton, for and if.
they have value

thanks for help
 
oh... sorry... i forgot to show my question....
to assme the page has three images. they are invisible. when i click one of the images, that image will visible, other images will be invisible. when i click another image, that image will visible and other images inivsible

the question is when i click one of images, it has no response to me.

i tried to test them:
temp=eval("org" + i);,
temp="org" + i;,
temp=("org" + i);

it didn't work

<%=i%> and <%=ttl%>

i put them in funciton, for and if.
they have value

thanks for help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top