Hi (First time user)

I am developing a team unit leader page. On my page I have a table with one column and multiple rows with each row having a department name. I would like to do two things but i'll focus on one for now. When i click on a dept. name I would like to display the tul for that department pic. I am new to asp, but in my table that holdoing the dept name i have <tr> <td onclick="tulpic();"> and in my script

<script language="javascript">
function tulpic() {
// here is where i am wondering is i can just put 
<% tulsql="select picutreurl from tb.users where tb_users.deptname= &request("deptname") and teamleader=1" %>
//also how would my pic actually be display?
}
</script>

Ohhh help me

Hi:

The easiest way will be to

- Read the department names and tul pic names
- display the department name and hyperlink the department names with tulpic names and use a javascript for showing the pic which will show the picture on mouseover event

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.