Recent Changes - Search:

Site

Dev

Consulting

pmwiki.org

WikiSandbox edit SideBar
Version: Php-5.6.40-27+0~
Version: pmwiki-2.2.90

Jscm-sample2JsCm

var paletteMenuOLD = [

	[null, 'File', null, null, null,
		[null, 'Open', null, null, null],
		[null, 'Save', null, null, null]
	],
	[null, 'Palette', null, null, null,
		[null, 'Options', null, null, null],
		_cmSplit,
		[_cmNoAction, '<td class="ThemeOfficeMenuItemLeft"><td colspan="2"><table summary="" border="0" cellpadding="0" cellspacing="2" style="cursor: default">' +
			'<tr class="Palette">' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#000000"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#00007F"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#007F00"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#007F7F"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#7F0000"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#7F007F"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#7F7F00"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#7F7F7F"> </td>' +
			'</tr>' +
			'<tr class="Palette">' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#CCCCCC"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#0000FF"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#00FF00"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#00FFFF"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#FF0000"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#FF00FF"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#FFFF00"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#FFFFFF"> </td>' +
			'</tr>' +
			'</table>']
	]

];

var paletteMenu = [

	[null, 'File', null, null, null,
		[null, 'Open', null, null, null],
		[null, 'Save', null, null, null]
	],
	[null, 'Palette', null, null, null,
		[null, 'Options', null, null, null],
		_cmSplit,
		[_cmNoAction, '<td class="ThemeOffice2003MenuItemLeft"><td colspan="2"><table summary="" border="0" cellpadding="0" cellspacing="2" style="cursor: default">' +
			'<tr class="Palette">' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#000000"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#00007F"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#007F00"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#007F7F"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#7F0000"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#7F007F"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#7F7F00"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#7F7F7F"> </td>' +
			'</tr>' +
			'<tr class="Palette">' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#CCCCCC"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#0000FF"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#00FF00"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#00FFFF"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#FF0000"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#FF00FF"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#FFFF00"> </td>' +
				'<td onmouseover="overPalette (this)" onmouseout="outPalette (this)" onclick="clickPalette (this)" class="Palette" bgcolor="#FFFFFF"> </td>' +
			'</tr>' +
			'</table></td>']
	]

];

var textBoxNA = [[null, 'cmNoAction', null, null, null, [_cmNoAction, '<td class="ThemeOfficeMenuItemLeft"><p>this is plain text with some <br><a href="#">links</a> in between</p></td>' ]]];

var textBoxNC = [[null, 'cmNoClick', null, null, null, [_cmNoClick, '<td class="ThemeGrayMenuItemLeft"><p>this is plain text with some <br><a href="#">links</a> in between</p></td>' ]]];

var animMenu = ;

var searchMenu = [[null, 'Search', null, null, null, [_cmNoClick, '<td class="ThemeOfficeMenuItemLeft"><img src="/pub/apps/pmwiki/cookbook/jscm/themes/ThemeOffice/spacer.gif"/></td><td colspan="2"><form action=""><input type="text" size="10" value="jscookmenu"/><input type="button" value="Google" onclick="googleSearch(this.previousSibling)"/></form></td>' ]]];

var searchMenu2 = [[null, 'Search', null, null, null, [_cmNoClick, '<td class="ThemeOfficeMenuItemLeft"><img src="/JSCookMenu/ThemeOffice/spacer.gif"/></td><td colspan="2"><form action=""><input type="text" size="10" value="jscookmenu"/><input type="button" value="Google" onclick="cmHideMenuTime();"/></form></td>' ]]];

var funcMenu = [[null, 'Begin', null, null, null,[ null, 'Action', 'javascript:setStatusText()', null, 'A JavaScript Action' ]]];

function overPalette (obj) {

  obj.className = "PaletteHover";

} function outPalette (obj) {

  obj.className = "Palette";

} function clickPalette (obj) {

  var test = document.getElementById ('test');
  test.bgColor = obj.bgColor;
  //alert('It worked! '+obj.bgColor);
  //test.style.height = '200px';
  test.style.background = obj.bgColor;

}

function setStatusText() {

	window.defaultStatus = 'It worked!';
	alert('It worked!');
	// make sure this function doesn't return anything

}

Edit - History - Print - Recent Changes - Search
Page last modified on December 01, 2018, at 09:58 PM