Solved

user control with <html> tags

Posted on 2004-08-12
3
288 Views
Last Modified: 2010-04-07
Our designer comes up with a page header with javascript code in it.  The script makes image rollover.  Its code looks like

<html>
<head>
<script language="JavaScript">
function xxx()
...

</script>
<body onload="functionName()">

...
<img onMouseOver="functionName()"
...
</body>
</head>
</html>

 I have made the header as an user control and put it in every page.  But the html page viewer gets has <html> tags embeded in <p> tags since the user control introduces them.

Please advise how I can solve the problem.


Biang
0
Comment
Question by:Jinghui Li
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
trevorhartman earned 500 total points
ID: 11788898
get rid of the <html> tags.  something like this:

<script language="JavaScript">
function xxx()
...

window.onLoad= functionName();
</script>

...
<img onMouseOver="functionName()"
...


-Trevor
0
 

Author Comment

by:Jinghui Li
ID: 11788906
So no onload in the <body> tag?
0
 
LVL 8

Expert Comment

by:trevorhartman
ID: 11788915
you don't need it.  the window.onLoad=functionName() takes care of that
-Trevor
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now