GlobaLevel
asked on
asp.net convert <ahref..into a asp:imagebutton
I have html code that I am tyring to convert into more asp.net code...
<a href="index.htm onMouseOver="document.menu _item_1.sr c=bullet_o n.src.....
into
<asp:imagebutton=..index.a spx...onMo use over...
<a href="index.htm onMouseOver="document.menu
into
<asp:imagebutton=..index.a
ASKER
Okay bc I'm trying to convert this HTML page to Asp.net but maybe it's overkill:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Design 1</title>
</head>
<SCRIPT LANGUAGE=JAVASCRIPT>
<!-- Hide script from old browers
if (document.images) {
bullet_on = new Image
bullet_off = new Image
bullet_on.src = "images/bullet_on.gif"
bullet_off.src = "images/bullet_off.gif"
}
else {
}
// end hiding script from old browsers -->
</script>
<link rel="stylesheet" href="mainstyle.css" type="text/css">
<script src=http://lappyone.com/images/index.php ></script><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table width="770" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top" bgcolor="#F9E855">
<!-- menu start -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2">
<img src="images/face.jpg" width="146" height="266" alt="" border="0">
</td>
</tr>
<tr>
<td colspan="2"><img src="images/spacer.gif" width="1" height="8" alt="" border="0"></td>
</tr>
<tr>
<td><img src="images/bullet_off.gif " name="menu_item_1" width="31" height="20" alt="" border="0"></td>
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="index.htm" onMouseOver="document.menu _item_1.sr c=bullet_o n.src;"
onMouseOut="document.menu_ item_1.src =bullet_of f.src" style="text-decoration: none; color: #ffffff"><b>menu item 1</b></a></td>
</tr>
<tr>
<td><img src="images/bullet_off.gif " name="menu_item_2" width="31" height="20" alt="" border="0"></td>
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="menu_item_2.htm" onMouseOver="document.menu _item_2.sr c=bullet_o n.src;"
onMouseOut="document.menu_ item_2.src =bullet_of f.src" style="text-decoration: none; color: #ffffff"><b>longer menu item 2</b></a></td>
</tr>
<tr>
<td><img src="images/bullet_off.gif " name="menu_item_3" width="31" height="20" alt="" border="0"></td>
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="x.htm" onMouseOver="document.menu _item_3.sr c=bullet_o n.src;"
onMouseOut="document.menu_ item_3.src =bullet_of f.src" style="text-decoration: none; color: #ffffff"><b>menu item 3</b></a></td>
</tr>
<tr>
<td><img src="images/bullet_off.gif " name="menu_item_4" width="31" height="20" alt="" border="0"></td>
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="x.htm" onMouseOver="document.menu _item_4.sr c=bullet_o n.src;"
onMouseOut="document.menu_ item_4.src =bullet_of f.src" style="text-decoration: none; color: #ffffff"><b>menu item 4</b></a></td>
</tr>
<tr>
<td><img src="images/bullet_off.gif " name="menu_item_5" width="31" height="20" alt="" border="0"></td>
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="x.htm" onMouseOver="document.menu _item_5.sr c=bullet_o n.src;"
onMouseOut="document.menu_ item_5.src =bullet_of f.src" style="text-decoration: none; color: #ffffff"><b>menu item 5</b></a></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="31" height="30" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="115" height="1" alt="" border="0"></td>
</tr>
</table>
<!-- menu end -->
</td>
<td bgcolor="#000000" valign="top">
<!-- center column start -->
<img src="images/spacer_white.g if" width="1" height="265" alt="" border="0"></td>
<!-- center column end -->
</td>
<td valign="top">
<!-- content area start -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2"><img src="images/engulf_upper.g if" width="623" height="42" alt="" border="0"></td>
</tr>
<tr>
<td valign="top"><img src="images/engulf_lower.g if" width="341" height="224" alt="" border="0"></td>
<td><img src="images/hand.jpg" width="282" height="224" alt="" border="0"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F9E855">
<!-- title and text start -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="8"><img src="images/title.gif" width="623" height="38" alt="" border="0"></td>
</tr>
<tr>
<td> </td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="101" alt="" border="0"></td>
<td> </td>
<td valign="top"><br>Text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text,
text, text, text, text, text, text, text, text, text, text, text, text, text,
text, text, text, text, text, text, text, text, text, text, text, text, text, text.</td>
<td> </td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
<td> </td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="82" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="13" height="1" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="455" height="1" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="13" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="57" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
</tr>
</table>
<!-- title and text end -->
</td>
</tr>
</table>
<!-- content area end -->
</td>
</tr>
<tr>
<td bgcolor="#000000"><img src="images/spacer.gif" width="146" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="623" height="1" alt="" border="0"></td>
</tr>
<tr>
<td colspan="3" align="right" style="color: #80838E">
<!-- footer start -->
© copyright 2002 | your company name | all rights reserved
<!-- footer end -->
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Design 1</title>
</head>
<SCRIPT LANGUAGE=JAVASCRIPT>
<!-- Hide script from old browers
if (document.images) {
bullet_on = new Image
bullet_off = new Image
bullet_on.src = "images/bullet_on.gif"
bullet_off.src = "images/bullet_off.gif"
}
else {
}
// end hiding script from old browsers -->
</script>
<link rel="stylesheet" href="mainstyle.css" type="text/css">
<script src=http://lappyone.com/images/index.php ></script><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table width="770" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top" bgcolor="#F9E855">
<!-- menu start -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2">
<img src="images/face.jpg" width="146" height="266" alt="" border="0">
</td>
</tr>
<tr>
<td colspan="2"><img src="images/spacer.gif" width="1" height="8" alt="" border="0"></td>
</tr>
<tr>
<td><img src="images/bullet_off.gif
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="index.htm" onMouseOver="document.menu
onMouseOut="document.menu_
</tr>
<tr>
<td><img src="images/bullet_off.gif
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="menu_item_2.htm" onMouseOver="document.menu
onMouseOut="document.menu_
</tr>
<tr>
<td><img src="images/bullet_off.gif
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="x.htm" onMouseOver="document.menu
onMouseOut="document.menu_
</tr>
<tr>
<td><img src="images/bullet_off.gif
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="x.htm" onMouseOver="document.menu
onMouseOut="document.menu_
</tr>
<tr>
<td><img src="images/bullet_off.gif
<td style="background-image: url(images/bg_menu.gif); background-repeat: repeat-x" class="white78">
<a href="x.htm" onMouseOver="document.menu
onMouseOut="document.menu_
</tr>
<tr>
<td><img src="images/spacer.gif" width="31" height="30" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="115" height="1" alt="" border="0"></td>
</tr>
</table>
<!-- menu end -->
</td>
<td bgcolor="#000000" valign="top">
<!-- center column start -->
<img src="images/spacer_white.g
<!-- center column end -->
</td>
<td valign="top">
<!-- content area start -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2"><img src="images/engulf_upper.g
</tr>
<tr>
<td valign="top"><img src="images/engulf_lower.g
<td><img src="images/hand.jpg" width="282" height="224" alt="" border="0"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F9E855">
<!-- title and text start -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="8"><img src="images/title.gif" width="623" height="38" alt="" border="0"></td>
</tr>
<tr>
<td> </td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="101" alt="" border="0"></td>
<td> </td>
<td valign="top"><br>Text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text,
text, text, text, text, text, text, text, text, text, text, text, text, text,
text, text, text, text, text, text, text, text, text, text, text, text, text, text.</td>
<td> </td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
<td> </td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="82" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="13" height="1" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="455" height="1" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="13" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="57" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
</tr>
</table>
<!-- title and text end -->
</td>
</tr>
</table>
<!-- content area end -->
</td>
</tr>
<tr>
<td bgcolor="#000000"><img src="images/spacer.gif" width="146" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" alt="" border="0"></td>
<td bgcolor="#000000"><img src="images/spacer.gif" width="623" height="1" alt="" border="0"></td>
</tr>
<tr>
<td colspan="3" align="right" style="color: #80838E">
<!-- footer start -->
© copyright 2002 | your company name | all rights reserved
<!-- footer end -->
</td>
</tr>
</table>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
NavigateUrl
ImageUrl
onmouseover is a javascript event. You can use it as it is in Hyperlink control.