Advertisement
C_Volume2 Complete Applications #73695

EasyNotePad

This demonstrates many ideas for building a word processor. Shows one way to make context sensitive menus and toolbars. Printing. A simple find/find next routine. Clipboard controls. Form resizing. Shows how to make a status bar. Change fonts(color size type). Any comments greatly appreciated!!

AI

Résumé par IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Code source
original-source
Upload
<html>
<head>
	<title>RadCheck! Checkbox that acts like Radio Button with Select Highliting</title>
<style>
table{font: 12px verdana;}
td{border:1px solid powderblue;}
</style>
<script language="javascript">
function Highlight($objId,$id)
{
	//unselect other checkbox's
	for(i=0;i<(document.form1.rad_id.length);i++)
	{
		if(document.form1.rad_id[i].id!=$objId)
		{
			document.form1.rad_id[i].checked=false;
			var row_id = "row"+(document.form1.rad_id[i].value);
			document.getElementById(row_id).style.background="transparent";
		}
		
			
	}
	
	
	//When checkbox is checked(TRUE) change background to blue
	if(document.getElementById($objId).checked==true)
	{
		document.getElementById($id).style.background="skyblue";
	}
	//When checkbox is UNchecked(FALSE) Restore Defaults
		else if(document.getElementById($objId).checked==false)
		{
			document.getElementById($id).style.background="transparent";
		}
}
</script>
</head>
<body>
<form name="form1" method="post" action="">
		
	<table align="left" cellpadding="0" cellspacing="1" border="0" width="100">
	<tr id="row1">
		<td width="25">
		<input type="checkbox" id="obj1" onclick='Highlight("obj1","row1")' name="rad_id" value="1">one
		</td>
	</tr>
	<tr id="row2">
		<td width="25">
		<input type="checkbox" id="obj2" onclick='Highlight("obj2","row2")' name="rad_id" value="2">two
		</td>
	</tr>
	<tr id="row3">
		<td width="25">
		<input type="checkbox" id="obj3" onclick='Highlight("obj3","row3")' name="rad_id" value="3">three
		</td>
	</tr>
	<tr id="row4">
		<td width="25">
		<input type="checkbox" id="obj4" onclick='Highlight("obj4","row4")' name="rad_id" value="4">four
		</td>
	</tr>
	<tr id="row5">
		<td width="25">
		<input type="checkbox" id="obj5" onclick='Highlight("obj5","row5")' name="rad_id" value="5">five
		</td>
	</tr>
	</table>
</form>
</body>
</html>

Upload
Commentaires originaux (3)
Récupéré via Wayback Machine