Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Imbedding HTML into a another HTML
Message
 
To
08/12/2004 10:47:54
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00967757
Message ID:
00967870
Views:
16
>Can someone direct me to a resource to find out how to use HTML code from one document into another? I tried using the OBJECT tag with "text/HTML", but it surrounds the external HTML in a textbox with scroll bars. I'm really looking for a way to reuse some buttons on a number of other pages. Is there another way to do it? Is there a master template or stylesheet way of handling this?

Jay;

I would suggest an include file. This is how I do it.

In the form of interest place the following code. ToolBarWrite is given as an example. You can use html, htm or asp extensions as you like.
<!—#INCLUDE FILE ="ToolBarWrite.asp" --> 
Now create another form and call it ToolBarWrite.asp. This will be your INCLUDE file.
<DIV STYLE="LEFT: 5px; POSITION: absolute; TOP: 5px">


<TABLE>
<TR>
	<TD>  <INPUT id=”cmdLineCall” name=”cmdLineCall” type=button value="Line Call"></TD>
</TR>
</TABLE>

</DIV>

<script Language=vbScript>

Sub cmdLineCall_OnClick()
     location.href = "LineCall.asp" 
End Sub

Sub cmdLineCall_OnMouseOver() 
     cmdLineCall.title = "Line Call Form" 
End Sub

</script>
You can use JavaScript if you like. I use both. You can write required code within the INCLUDE script area or if you like you can write custom code for each form the INCLUDE file is used in. Add as many objects as you like. Use the DIV LEFT and TOP values to position your objects. I aslo use style sheets to get colors and other goodies to be as required.

Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform