Alright, maybe if I write it out somebody can help me.......

admin

Administrator
Staff member
I would be grateful.............

.
Ok, as I said before, I am an amateur and I would like to know how to insert a java-scripted item into the code form and make sure it "mixes" well with everything else.

.
Ok, here is my plain web-page with nothing in it. (except a
table cell (this was made in Dreamweaver):


_________________________________________________


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

<table width="917" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="381" height="175" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
<td width="536">&nbsp;</td>
</tr>
<tr>
<td height="411">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

_______________________________________________


Now, here is a completely separate document which
contains just my java-scripted "button" and nothing else:


.
<html>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
var refer=true;
function combo() {
if (refer) {
document.all.contents.style.visibility="visible";
refer=false;
}
else {
document.all.contents.style.visibility="hidden";
refer=true;
}
}
// End -->
</script>

</HEAD>

<BODY>

<table align="left">
<tr><td>
<table width="200" border="1" cellspacing="0" cellpadding="0" bordercolor="#d8d8d8">
<tr>
<td bgcolor="9999ff">
<font face="verdana" size="2">&nbsp; </font>
</td>
<td align="right" width="21">
<img src=http://www.webdeveloper.com/forum/archive/index.php/"file:///C|/Documents%20and%20Settings/Ali/My%20Documents/My%20Albums/combo_arrow.gif" name="combo_arrow" width="21" height="21" alt="" border="0" onclick="combo()" ></td>
</tr>
</table>
<div id="contents" style="position:absolute; left:?px; top:?px; width:?px; height:?px; z-index:1; visibility:hidden">
<table width="200" border="1" cellspacing="0" cellpadding="0" bordercolor="#d8d8d8">
<tr>
<td bgcolor="9999ff">
<font face="verdana" size="2">
<a href="http://www.marca.com" target="_blank"> <img src="file:///C|/Documents%20and%20Settings/Ali/My%20Documents/My%20Albums/bullet2.gif" width="4" height="4"> MARCA</a><br>
<a href="http://www.yahoo.com/" target="_blank"> <img src="file:///C|/Documents%20and%20Settings/Ali/My%20Documents/My%20Albums/bullet2.gif" width="4" height="4"> Yahoo</a><br>
<a href="http://www.reuters.com/" target="_blank"> <img src="file:///C|/Documents%20and%20Settings/Ali/My%20Documents/My%20Albums/bullet2.gif" width="4" height="4"> Reuters</a><br></font>
</td>
</tr>
</table>
</td></tr></table>
<!-- Script Size: 2.31 KB -->
<p>&nbsp;</p>
</body>
</html>


__________________________________________________


.
Now, my question is, how do I get the java-scripted text (from 2nd script I posted)
into the first plain document? How do I combine the two?

I would like to place the java button in this section (from 1st document) :


<td width="381" height="175" valign="top">HERE IN THIS PART <!--DWLayoutEmptyCell-->&nbsp;</td>



.
.
.
Can any of you experts assist me?

Many thanks.
 
Back
Top