=== === === === JavaScript经典源代码收集

源代码在线查看: blad.htm

软件大小: 258 K
上传用户: tsdtz
关键词: JavaScript 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

												VML editor																								if(top == self){				location.replace('editor.htm');				} else {				document.writeln('');				document.writeln('');				document.writeln('v\\:* { behavior: url(#default#VML);}');				document.writeln('');				}								teller = 0;								function maak_vorm(vorm)				{				  teller++;				  X = event.clientX;				  Y = event.clientY;								  var vulling = (parent.document.forms[0].vulkleur.value == '')? '': '';  				  var dikte = parent.document.forms[0].lijndikte.value;				  var rand = (parent.document.forms[0].randkleur.value == '')? '': '';								  var vormen = new Array(); 				  vormen['vrijevorm'] = '' + vulling + rand + '';				  vormen['ovaal'] = '' + vulling + rand + '';  				  vormen['rechthoek'] = '' + vulling + rand + '';				  vormen['rondhoek'] = '' + vulling + rand + '';								  document.body.insertAdjacentHTML('beforeend', (vormen[vorm] + ''));				  document.onmousemove = (vorm == 'vrijevorm')? teken_vrijevorm: teken_vastevorm;				}								function teken_vrijevorm()				{				  var pad = document.getElementById('nr' + teller).firstChild;				  pad.setAttribute('v', (pad.getAttribute('v').replace('e','') + ' ' + event.clientX + ',' + event.clientY + ' e')); 				}								function teken_vastevorm()				{				  var vorm = document.getElementById('nr' + teller);				  var verschil_X = event.clientX - X;				  var verschil_Y = event.clientY - Y;								    if(verschil_X < 0){				    vorm.style.left = (X + verschil_X) + 'px';				    vorm.style.width = -verschil_X + 'px';				    } else {				    vorm.style.width = verschil_X + 'px';				    }								    if(verschil_Y < 0){				    vorm.style.top = (Y + verschil_Y) + 'px';				    vorm.style.height = -verschil_Y + 'px';				    } else {				    vorm.style.height = verschil_Y + 'px';				    }				}								function eindig_vorm()				{				  if(parent.document.forms[0].anti_alias.checked){				  document.getElementById('nr' + teller).style.antialias = 'true';				  }								  document.onmousemove = niks; 				}								function niks(){ return false;}								window.onerror = function(){ return true;}								if(top != self){ 				document.onmousedown = function(){ maak_vorm(parent.document.forms[0].gereedschap.options[parent.document.forms[0].gereedschap.selectedIndex].value);}				document.onmouseup = eindig_vorm;				}								document.onselectstart = niks;				document.oncontextmenu = niks;																																								This page can only be viewed in Internet Explorer 5+ (Windows).																							

相关资源