Source&Script

 8月10日(月)5時48分

<title>Artopix / Moving Object</title>

<style type="text/css"><!--
body{color:#000;margin:0px 0px 0px 0px;}
.hidimg{position:absolute;visibility:hidden;}
form{position:absolute;top:200px;left:120px;}
--></style>

<img id="sb1" src="1obj.gif" class="hidimg" alt="Img1" />
<img id="sb2" src="2obj.gif" class="hidimg" alt="Img2" />
<img id="sb3" src="3obj.gif" class="hidimg" alt="Img3" />
<img id="sb4" src="4obj.gif" class="hidimg" alt="Img4" />

<form name="myForm" action="#">
<input type="button" value="Start" name="myFormButton" onclick="objCtrl(0)" />
</form>

<script type="text/javascript">
//pathy=4;//
clkbtn=0;
obid=0;
pathr=0;
rengx=180;
objangle=-0.8;
pathangle=0;
rotorangle=0;
rollangle=0;
midx=0;
midy=0;
vpz=1000;
aryObj=23;
parts=new Array(aryObj);

isx=new Array( 0,-15,-29,-43,-57,-70, 15, 29, 43, 57, 70,-30, 0, 23, 41, 59, 77, 87, 95, 85, 0,-10,-10);
isy=new Array(-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30, 40, 0, 0, 0, 0, 50,80,-15, 8,-15, 64, 64);
isz=new Array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20,-20);
isr=new Array( 12, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 32, 30, 20, 20, 20, 18, 16, 10, 10, 20, 16, 16);//img-size
isc=new Array( 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 3, 4, 3, 4, 3, 4, 3, 3, 4, 4);

function objCtrl(n){
if (clkbtn==0){
clkbtn = 1;
document.myForm.myFormButton.value = "Stop ";
intervalID=setInterval("frame(3);",30);
} else {
if (n==0){
clkbtn = 0;
document.myForm.myFormButton.value = "Start";
clearInterval(intervalID);
}
}
}
resize();

for(i=0;i<aryObj;i++){
parts[i]=new objPrt(isx[i],isy[i],isz[i],isr[i],isc[i]);
parts[i].createparts();
}



function frame(action){
rotorangle+=0.8;
if(rotorangle>=Math.PI)rotorangle-=2*Math.PI;
sp=Math.sin(rotorangle);
cp=Math.cos(rotorangle);
for(i=0;i<11;i++){
with(parts[i]){
ix=sx*cp-sz*sp;
iy=sy;
iz=sz*cp+sx*sp;
}
}
for(i=11;i<aryObj;i++){
with(parts[i]){
ix=sx;
iy=sy;
iz=sz;
}
}
rollangle=action;
if(rollangle>=Math.PI)rollangle-=2*Math.PI;
sp=Math.sin(rollangle);
cp=Math.cos(rollangle);
for(i=0;i<aryObj;i++){
with(parts[i]){
ty=iy;
tz=iz;
iy=ty*cp+tz*sp;
iz=tz*cp-ty*sp;
}
}
pathangle+=0.02;
if(pathangle>=Math.PI)pathangle-=2*Math.PI;
sp=Math.sin(pathangle);
cp=Math.cos(pathangle);
for(i=0;i<aryObj;i++){
with(parts[i]){
tx=ix;
tz=iz;
ix=tx*cp-tz*sp;
iz=tz*cp+tx*sp;
ix-=pathr*sp;
iz+=pathr*cp;
}
}
for(i=0;i<aryObj;i++){
with(parts[i]){
k=vpz/(vpz-iz);
x=ix*k;
y=(iy)*k;
z=iz;
d=sd*k;
}
}
render();
}

function resize(){
midx=document.body.clientWidth/2;
midy=document.body.clientHeight/2;
pathr=midx-rengx;
}

function createparts(){
newimg="<img id='b"+this.obid+"' style='position:absolute;left:"+this.x+";top:"+this.y+";z-index:"+this.z+";width:"+this.d+";height:"+this.d+";'>";
document.write(newimg);
document.images["b"+this.obid].src=document.images["sb"+this.c].src;
}

function render(){
for(i=0;i<aryObj;i++){
with(parts[i]){
DS=document.images["b"+obid].style;
DS.left=midx+x-d/2;
DS.top=midy+y-d/2;
DS.zIndex=z*100;
DS.width=d;
DS.height=d;
}
}
}

function objPrt(sx,sy,sz,d,c){
this.obid=obid++;
this.sx=sx;
this.sy=sy;
this.sz=sz;
this.sd=d;
this.ix=sx;
this.iy=sy;
this.iz=sz;
this.x=sx;
this.y=sy;
this.z=sz;
this.d=d;
this.c=c;
this.createparts=createparts;
}
</script>

Source&Script

 3月22日(土)21時18分

#!/usr/bin/perl

use CGI qw/:standard/;
$CGI::POST_MAX=1024 * 10;
use Jcode;
use Fcntl qw(:DEFAULT :flock :seek);

my $q = new CGI;
my $baseUrl = 'http://localhost/';
my $qus = $baseUrl.'gif/qus.gif';
my $ans = $baseUrl.'gif/grp.gif';
my $cssstyle = $baseUrl.'css/this.css';
my $datafile = 'dat/this.log';
my $title = 'This CGI';

print $q->header(-charset=>'shift_jis');
print $q->start_html(-title=>$title,-style=>{src=>$cssstyle});
print $q->h5('One Word Board');
print $q->img({src=>$qus,-hspace=>'8',alt=>'*'}),"<small>How are you ?</small>";
&do_print($q);
&data_form($q);
print $q->end_html;

sub do_print {
my($q) = @_;
my(@values,$key);
my $ans = $q->img({src=>$ans,-hspace=>'4',alt=>'□'});
print "<div class='pnl'>\n";
foreach $key ($q->param) {
@values = $q->param($key);
print $ans . "@values<br />\n";
}
print "</div>\n";
sysopen(OUT, $datafile, O_WRONLY|O_TRUNC|O_CREAT, 0600);
flock(OUT, LOCK_EX);
seek(OUT, 0, SEEK_SET);
print OUT @values;
flock(OUT, LOCK_NB);
close(OUT);
}

sub data_form {
my ($q) = @_;
print $q->start_form;
print $q->textfield(-name=>'comment',-maxlength=>'45',-size=>'30');
print $q->submit(-value=>'ok');
print $q->reset(-value=>'no');
print $q->endform;
}

/ * This CSS for One Word This */

h5 { margin:10px 0px 32px 0px;
border:1px solid #ccc;
padding:2px;
width:230px;
text-align:center;
background:#fff;
}
small{ margin-left:2px;
font-size:11px;
font-family:Georgia,Times,sans-serif;
}
input{ margin-left:2px;
font-size:11px;
font-family:Georgia,Times,sans-serif;
border:1px solid #ccc;
}
.pnl { margin:10px 0px 10px 20px;
border:0px solid #ccc;
padding:4px;
width:220px;
height:110px;
font-size:12px;
}
.line{ margin:10px 0px 10px 0px;
font-size:11px;
font-family:Georgia,Times,sans-serif;
}


http://artopix.net/

Source&Script

 3月1日(土)7時43分

function requiredCheck(strVal,strErr){
if(strVal=="" || strVal==undefined){
return strErr + "は必須入力です \r";
}else{
return "";
}
}

function requiredRadioCheck(objElm,strErr){
flag=false;
for(i=0; i<objElm.length;i++){
if(objElm[i].checked){flag=true;}
}
if(!flag){
return strErr + "は必須入力です \r";
}else{
return "";
}

}

function lengthCheck(strVal,intMax,strErr){
if(strVal=="" || strVal==undefined){
return ""
}else{
if(strVal.length>intMax){
return strErr + "は" + "桁以下で入力してください\r"
}else{
return "";
}
}
}

function zenCheck(strVal,strErr){
if(strVal=="" || strVal==undefined){
return ""
}else{
cnt=0;
for(i=0;i<strVal.length;i++){
if(escape(strVal.charAt(i)).length>=4){
cnt+=2;
}else{
cnt++;
}
}
if(cnt!=strVal.length*2){
return strErr + "は全角(2バイト文字)で入力してください \r";
}else{
return "";
}
}
}

function hanCheck(strVal,strErr){
if(strVal=="" || strVal==undefined){
return ""
}else{
cnt=0;
for(i=0;i<strVal.length;i++){
if(escape(strVal.charAt(i)).length>=4){
cnt+=2;
}else{
cnt++;
}
}
if(cnt!=strVal.length){
return strErr + "は半角(1バイト文字)で入力してください \r";
}else{
return "";
}
}
}

function numberTypeCheck(strVal,strErr){
if(strVal=="" || strVal==undefined){
return ""
}else{
if(isNaN(strVal)){
return strErr + "は数値で入力してください \r";
}else{
return "";
}
}
}

function dateTypeCheck(strVal,strErr){
if(strVal=="" || strVal==undefined){
return ""
}else{
var objReg=new RegExp("^[0-9]{4}/[0-9]{2}/[0-9]{2}$","ig");
if(!objReg.test(strVal)){
return strErr + "は日付形式で入力してください \r";
}else{
var strYear =strVal.substring(0,4);
var strMonth=strVal.substring(5,7);
var strDay =strVal.substring(8,10);
var tmpDat =new Date(strYear,strMonth-1,strDay);
if(strYear!=tmpDat.getFullYear() || strMonth-1!=tmpDat.getMonth() || strDay!=tmpDat.getDate()){
return strErr + "は日付形式で入力してください \r";
}else{
return "";
}
}
}
}

function rengeCheck(strVal,intMax,intMin,strErr){
if(strVal=="" || strVal==undefined){
return ""
}else{
if(isNaN(strVal)){
return strErr + "は数値で入力してください \r";
}else{
intVal=parseInt(strVal,10);
if(intValintMax){
return strErr + "は" + intMin + "以上" + intMax + "以下で入力してください \r";
}else{
return "";
}
}
}
}

function regExCheck(strVal,strPtn,strErr){
if(strVal=="" || strVal==undefined){
return ""
}else{
var objReg=new RegExp(strPtn,"ig");
if(!objReg.test(strVal)){
return strErr + "を正しい形式で入力してください \r";
}else{
return "";
}
}
}

Source&Script

 3月1日(土)7時41分

Source&Script

∇~19Data Algorithm:3/1(wed)19:33

*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Copyright (C) Paul Johnston 1999 - 2000.
* Updated by Greg Holt 2000 - 2001.
* See http://pajhome.org.uk/site/legal.html for details.
*/

*
* Convert a 32-bit number to a hex string with ls-byte first
*/
var hex_chr = "0123456789abcdef";
function rhex(num)
{
str = "";
for(j = 0; j <= 3; j++)
str += hex_chr.charAt((num >> (j * 8 + 4)) & 0x0F) +
hex_chr.charAt((num >> (j * 8)) & 0x0F);
return str;
}

*
* Convert a string to a sequence of 16-word blocks, stored as an array.
* Append padding bits and the length, as described in the MD5 standard.
*/
function str2blks_MD5(str)
{
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
for(i = 0; i < nblk * 16; i++) blks[i] = 0;
for(i = 0; i < str.length; i++)
blks[i >> 2] |= str.charCodeAt(i) << ((i % 4) * 8);
blks[i >> 2] |= 0x80 << ((i % 4) * 8);
blks[nblk * 16 - 2] = str.length * 8;
return blks;
}

*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
* to work around bugs in some JS interpreters.
*/
function add(x, y)
{
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return (msw << 16) | (lsw & 0xFFFF);
}

*
* Bitwise rotate a 32-bit number to the left
*/
function rol(num, cnt)
{
return (num >> cnt) | (num >>> (32 - cnt));
}

*
* These functions implement the basic operation for each round of the
* algorithm.
*/
function cmn(q, a, b, x, s, t)
{
return add(rol(add(add(a, q), add(x, t)), s), b);
}
function ff(a, b, c, d, x, s, t)
{
return cmn((b & c) | ((~b) & d), a, b, x, s, t);
}
function gg(a, b, c, d, x, s, t)
{
return cmn((b & d) | (c & (~d)), a, b, x, s, t);
}
function hh(a, b, c, d, x, s, t)
{
return cmn(b ^ c ^ d, a, b, x, s, t);
}
function ii(a, b, c, d, x, s, t)
{
return cmn(c ^ (b | (~d)), a, b, x, s, t);
}

*
* Take a string and return the hex representation of its MD5.
*/
function MD5(str)
{
x = str2blks_MD5(str);
var a = 1732584193;
var b = -271733879;
var c = -1732584194;
var d = 271733878;

for(i = 0; i < x.length; i += 16)
{
var olda = a;
var oldb = b;
var oldc = c;
var oldd = d;

a = ff(a, b, c, d, x[i+ 0], 7 , -680876936);
d = ff(d, a, b, c, x[i+ 1], 12, -389564586);
c = ff(c, d, a, b, x[i+ 2], 17, 606105819);
b = ff(b, c, d, a, x[i+ 3], 22, -1044525330);
a = ff(a, b, c, d, x[i+ 4], 7 , -176418897);
d = ff(d, a, b, c, x[i+ 5], 12, 1200080426);
c = ff(c, d, a, b, x[i+ 6], 17, -1473231341);
b = ff(b, c, d, a, x[i+ 7], 22, -45705983);
a = ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
d = ff(d, a, b, c, x[i+ 9], 12, -1958414417);
c = ff(c, d, a, b, x[i+10], 17, -42063);
b = ff(b, c, d, a, x[i+11], 22, -1990404162);
a = ff(a, b, c, d, x[i+12], 7 , 1804603682);
d = ff(d, a, b, c, x[i+13], 12, -40341101);
c = ff(c, d, a, b, x[i+14], 17, -1502002290);
b = ff(b, c, d, a, x[i+15], 22, 1236535329);

a = gg(a, b, c, d, x[i+ 1], 5 , -165796510);
d = gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
c = gg(c, d, a, b, x[i+11], 14, 643717713);
b = gg(b, c, d, a, x[i+ 0], 20, -373897302);
a = gg(a, b, c, d, x[i+ 5], 5 , -701558691);
d = gg(d, a, b, c, x[i+10], 9 , 38016083);
c = gg(c, d, a, b, x[i+15], 14, -660478335);
b = gg(b, c, d, a, x[i+ 4], 20, -405537848);
a = gg(a, b, c, d, x[i+ 9], 5 , 568446438);
d = gg(d, a, b, c, x[i+14], 9 , -1019803690);
c = gg(c, d, a, b, x[i+ 3], 14, -187363961);
b = gg(b, c, d, a, x[i+ 8], 20, 1163531501);
a = gg(a, b, c, d, x[i+13], 5 , -1444681467);
d = gg(d, a, b, c, x[i+ 2], 9 , -51403784);
c = gg(c, d, a, b, x[i+ 7], 14, 1735328473);
b = gg(b, c, d, a, x[i+12], 20, -1926607734);

a = hh(a, b, c, d, x[i+ 5], 4 , -378558);
d = hh(d, a, b, c, x[i+ 8], 11, -2022574463);
c = hh(c, d, a, b, x[i+11], 16, 1839030562);
b = hh(b, c, d, a, x[i+14], 23, -35309556);
a = hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
d = hh(d, a, b, c, x[i+ 4], 11, 1272893353);
c = hh(c, d, a, b, x[i+ 7], 16, -155497632);
b = hh(b, c, d, a, x[i+10], 23, -1094730640);
a = hh(a, b, c, d, x[i+13], 4 , 681279174);
d = hh(d, a, b, c, x[i+ 0], 11, -358537222);
c = hh(c, d, a, b, x[i+ 3], 16, -722521979);
b = hh(b, c, d, a, x[i+ 6], 23, 76029189);
a = hh(a, b, c, d, x[i+ 9], 4 , -640364487);
d = hh(d, a, b, c, x[i+12], 11, -421815835);
c = hh(c, d, a, b, x[i+15], 16, 530742520);
b = hh(b, c, d, a, x[i+ 2], 23, -995338651);

a = ii(a, b, c, d, x[i+ 0], 6 , -198630844);
d = ii(d, a, b, c, x[i+ 7], 10, 1126891415);
c = ii(c, d, a, b, x[i+14], 15, -1416354905);
b = ii(b, c, d, a, x[i+ 5], 21, -57434055);
a = ii(a, b, c, d, x[i+12], 6 , 1700485571);
d = ii(d, a, b, c, x[i+ 3], 10, -1894986606);
c = ii(c, d, a, b, x[i+10], 15, -1051523);
b = ii(b, c, d, a, x[i+ 1], 21, -2054922799);
a = ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
d = ii(d, a, b, c, x[i+15], 10, -30611744);
c = ii(c, d, a, b, x[i+ 6], 15, -1560198380);
b = ii(b, c, d, a, x[i+13], 21, 1309151649);
a = ii(a, b, c, d, x[i+ 4], 6 , -145523070);
d = ii(d, a, b, c, x[i+11], 10, -1120210379);
c = ii(c, d, a, b, x[i+ 2], 15, 718787259);
b = ii(b, c, d, a, x[i+ 9], 21, -343485551);

a = add(a, olda);
b = add(b, oldb);
c = add(c, oldc);
d = add(d, oldd);
}
return rhex(a) + rhex(b) + rhex(c) + rhex(d);
}

function valid_js() {
/ anything that claims NS 4 or higher functionality better work
if (navigator.userAgent.indexOf("Mozilla/") == 0) {
return (parseInt(navigator.appVersion) >= 4);
}
return false;
}

function hash(form,login_url) {
/ this is Javascript enabled browser
/document.login_form[".js"].value=1;
/ rudimentary check for a 4.x brower. should catch IE4+ and NS4.*
var url;

if (arguments.length > 1 && login_url != "") { / in case login_url is not passed in
url = login_url;
} else {
url = "http://login.yahoo.co.jp/config/login";
}
url += "?";

if (valid_js()) {
var passwd = form.passwd.value;
/ any tags must be smashed
var newpw='';
var s1=false;
var s2=false;
for(i=0;i < passwd.length;i++) {
s = passwd.charAt(i);
if( s == '<' ) {
s1 = true;
} else
if( s == '&' ) {
if( i+1 < passwd.length && passwd.charAt(i+1) == '{' ) {
s2 = true;
}
}
if( !(s1 || s2) ) {
newpw += s;
}
if( s == '>' ) {
s1 = false;
} else
if( s == '}' ) {
s2 = false;
}
}
passwd = newpw;

var hash1 = MD5(passwd);
var challenge = form[".challenge"].value;
var hash2 = MD5(passwd) + challenge;
var hash;
if(passwd){
hash=MD5(hash2);
} else {
hash="";
}
var js = 0;

for(i=0; iif(form.elements[i].name.length <=0) {
continue;
}
if(i > 0){
url += "&";
}
url += form.elements[i].name;
url += "=";
if(form.elements[i].name == "passwd"){
url += hash;
} else if (form.elements[i].type == "checkbox" && !form.elements[i].checked) {
url += "";
} else if (form.elements[i].type == "radio" && !form.elements[i].checked) {
url += "";
} else if (form.elements[i].name == ".save"){
url += "1"; / "Sign in" causes problem with the space
} else if (form.elements[i].name == ".js"){
js = 1;
url += "1";
} else if (form.elements[i].name == "login") {
url += form.elements[i].value;
} else {
url += escape(form.elements[i].value);
}
}
/ indicate the password is hashed.
url += "&.hash=1";
if(js == 0){
url += "&.js=1";
}
url += "&.md5=1";
/alert("url=" + url);
location.href=url;
/ prevent from running this again. Allow the server response to submit the form directly
form.onsubmit=null;

/ abort normal form submission
return false;
}
/ allow normal form submission
return true;
}



∇~18Start_Index:2/27(mon)17:35

function setStartPage() {
var b = document.body;
var ua = navigator.userAgent;
var ie = ua.indexOf("MSIE");
var iever = parseInt(ua.substring(ie+5, ie+6));
var os = ua.indexOf("Windows");
if(ie > 0 && iever >= 5 && os > 0 && !window.opera){
var homepage = "http://YOURDOMAIN.com";
var jumpto = "http://YOURDOMAIN.com/";
b.style.behavior = "url('#default#homepage')";
var is_home =
b.isHomePage(homepage) || b.isHomePage(homepage + "/");
if(is_home)
alert("YOURDOMAIN is Already set.");
else
b.setHomePage(homepage + "/");
is_home =
b.isHomePage(homepage) || b.isHomePage(homepage + "/");
if(is_home) {
document.location.replace(jumpto);
}
}
else {
document.location.href="http://YOURDOMAIN.com/start.html";
}
}

function doSubmit() {
if(getTextValue() == "") {
return false;
}
return true;
}

function moveTo(id) {
url = "/?t=" + id;
if(encodeURIComponent) {
var q = encodeURIComponent(getTextValue());
switch(id) {
case "dic":
location.href = url + '&key=' + q;
break;
case "translate":
location.href = url + "&src_text=" + q;
break;
case "transit":
location.href = url + "&from=" + q;
break;
case "map":
location.href = url + "&word=" + q;
break;
case "depart":
location.href = url + "&word=" + q;
break;
default:
location.href = url + '&q=' + q;
}
return false;
}
return true;
}

function getTextValue() {
for (var i = 0; i < document.sf.elements.length; i++) {
var e = document.sf.elements[i];
if(e.type == 'text'){
return e.value;
}
}
}

window.onload = function() {
if(location.search && decodeURIComponent) {
var pairs = location.search.substr(1).split("&");
for(var i = 0; i < pairs.length; i++) {
var pair = pairs[i].split("=");
if((pair[0] == "q" || pair[0] == "key" || pair[0] == "word" || pair[0] == "kword" || pair[0] == "keyword" || pair[0] == "src_text" || pair[0] == "from") && pair[1]) {

document.sf[pair[0]].value = decodeURIComponent(pair[1]);
document.sf[pair[0]].focus();
}
}
} else {
document.sf.q.focus();
}
}



∇~17Javascript Document:6/4(sat)5:39

var ycsdone;
function geovisit()
{
var v,w,z;
if (ycsdone)
return;
z="&r="+escape(document.referrer);
z=z+"&b="+escape(navigator.appName+" "+navigator.appVersion);
w=parseFloat(navigator.appVersion);
if (w > 2.0) {
z=z+"&s="+screen.width+"x"+screen.height;
z=z+"&o="+navigator.platform;
v="1.2";
if (navigator.appName != "Netscape") {
z=z+"&c="+screen.colorDepth;
} else {
z=z+"&c="+screen.pixelDepth
}
z=z+"&j="+navigator.javaEnabled();
} else {
v=1.0;
}
z=z+"&v="+v;
document.writeln("<IMG BORDER=0 SRC=\"http://visit.geocities.jp/visit.gif?"+z+"\">");
ycsdone=1;
}



∇~16Yahoo banner:6/4(sat)5:37

/ JavaScript Document

var day = new Date();
var id = ''+day.getFullYear()+day.getDate()+'';
var ie4 = document.all;
var ie5 = document.all && document.getElementById;
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var auWritten=false;
var mac = (navigator.userAgent.indexOf("Mac") >=0) ? true : false;

function noFrameAu()
{
try { if (top.location.hostname){ throw "ok"; } else { throw "accesser"; } }
catch(er) { if (er=="ok") {yfrau = (top.location.href.indexOf(id)>0) ? true : false;} else {yfrau=true;} }
return yfrau;
}
function writeAu()
{
cnt='<center><iframe width=160 height=330 border=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src=\"http://geocities.yahoo.co.jp/toto?c=jp&s=' + jps + '&l=LE&t=' + jpt + '\"></iframe></center>';
document.write("<div id=y_gc_div_adcntr class=y_gcss_ovrtr_cntr><div id=y_gc_div_mast class=y_gcss_ovrtr_msthd><img src=http://img.yahoo.co.jp/images/clear.gif width=2 height=1><a href=\"http://rd.yahoo.co.jp/geo/geoguide/adsq/top/?http://geocities.yahoo.co.jp/\" target=_blank><img src=http://img.yahoo.co.jp/images/geo/ygeosm.gif alt=\"Yahoo! GeoCities\" width=122 height=16 hspace=0 vspace=2 border=0></a><img src=http://img.yahoo.co.jp/images/clear.gif width=3 height=1><a href=\"http://rd.yahoo.co.jp/geo/geoguide/adsq/help/?http://help.yahoo.co.jp/help/jp/geo/\" target=_blank><img src=http://img.yahoo.co.jp/images/geo/adsq/geo_ad_help.gif width=14 height=13 hspace=0 vspace=6 border=0></a><img src=http://img.yahoo.co.jp/images/clear.gif width=1 height=1><a href=\"javascript:;\" onMouseDown=\"maximizeAu('y_gc_div_au1')\";><img src=http://img.yahoo.co.jp/images/geo/adsq/geo_ad_dwn_widg2.gif width=14 height=13 hspace=0 vspace=6 border=0></a><img src=http://img.yahoo.co.jp/images/clear.gif width=1 height=1><a href=\"javascript:;\" onClick=\"closeAu('y_gc_div_adcntr')\";><img src=http://img.yahoo.co.jp/images/geo/adsq/geo_ad_close_widg2.gif width=14 height=13 hspace=0 vspace=6 border=0></a><img src=http://img.yahoo.co.jp/images/clear.gif width=2 height=1></div><div id=y_gc_div_au1 class=y_gcss_ovrtr_au><img src=http://img.yahoo.co.jp/images/clear.gif width=2 height=1><a href=\"http://rd.yahoo.co.jp/geo/geoguide/adsq/top/?http://geocities.yahoo.co.jp/\" target=_blank><img src=http://img.yahoo.co.jp/images/geo/ygeosm.gif alt=\"Yahoo! GeoCities\" width=122 height=16 hspace=0 vspace=2 border=0></a><img src=http://img.yahoo.co.jp/images/clear.gif width=3 height=1><a href=\"http://rd.yahoo.co.jp/geo/geoguide/adsq/help/?http://help.yahoo.co.jp/help/jp/geo/\" target=_blank><img src=http://img.yahoo.co.jp/images/geo/adsq/geo_ad_help.gif width=14 height=13 hspace=0 vspace=6 border=0></a><img src=http://img.yahoo.co.jp/images/clear.gif width=1 height=1><a href=\"javascript:;\" onMouseDown=\"minimizeAu('y_gc_div_au1')\";><img src=http://img.yahoo.co.jp/images/geo/adsq/geo_ad_up_widg2.gif width=14 height=13 hspace=0 vspace=6 border=0></a><img src=http://img.yahoo.co.jp/images/clear.gif width=1 height=1><a href=\"javascript:;\" onClick=\"closeAu('y_gc_div_adcntr')\";<>img src=http://img.yahoo.co.jp/images/geo/adsq/geo_ad_close_widg2.gif width=14 height=13 hspace=0 vspace=6 border=0></a><img src=http://img.yahoo.co.jp/images/clear.gif width=2 height=1><div class=y_gcss_ovrtr_au_cbox>"+cnt+"</div></div></div>>");
auPos('y_gc_div_adcntr');
auPos('y_gc_div_au1');
auPos('y_gc_div_mast');
}
function minimizeAu(divId) {
if (ns4) {
document.layers[divId].visibility = "hide";
} else if (ie5) {
if (mac)
document.getElementById(divId).style.visibility = "hidden";
else
document.getElementById(divId).style.display = "none";
} else if (ns6) {
document.getElementById(divId).style.display = "none";
} else if (ie4) {
document.all[divId].style.visibility = "hidden";
}
}
function maximizeAu(divId) {
if (ns4) {
document.layers[divId].visibility = "show";
} else if (ie5) {
if (mac)
document.getElementById(divId).style.visibility = "visible";
else
document.getElementById(divId).style.display = "inline";
} else if (ns6) {
document.getElementById(divId).style.display = "inline";
} else if (ie4) {
document.all[divId].style.visibility = "visible";
}
}
function closeAu(divId) {
minimizeAu('y_gc_div_au1');
minimizeAu('y_gc_div_mast');
}
function mmAction(divId) {
if (ie4) {
auVis = (document.all[divId].style.visibility == "visible") ? true : false;
} else if(ns4) {
auVis = (document.layers[divId].visibility == "show") ? true : false;
} else {
auVis = (document.getElementById(divId).style.visibility == "visible") ? true : false;
}
if (auVis){minimizeAu(divId);}
else {maximizeAu(divId);}
}
function auPos(divId)
{
posL = findX()-177;
if (ns4) {
posL='1';
document.layers[divId].visibility = "show";
document.layers[divId].left = posL;
} else if (ie5 || ns6) {
document.getElementById(divId).style.visibility = "visible";
document.getElementById(divId).style.left = posL;
} else if (ie4) {
document.all[divId].style.visibility = "visible";
document.all[divId].style.left = posL;
}
}
function isFrameset()
{
var numFr=0;
numFr=frames.length;
numFr=numFr-document.getElementsByTagName("iframe").length;
isFr=(numFr>0) ? true : false;
return isFr;
}
function divAu()
{
/ if (noFrameAu()) {
if (!isFrameset()) {
if (inFrame()) {
if (checkFrame()) {
writeAu();
auWritten=true;
rlPg(true);
}
} else {
writeAu();
auWritten=true;
rlPg(true);
}
}
/ }
}
function inFrame() {
inFr=(parent.frames.length != 0) ? true : false;
return inFr;
}
function findX()
{
var x=0;
if (self.innerWidth){x = self.innerWidth;} / ns
else if (document.documentElement && document.documentElement.clientHeight){x = document.documentElement.clientWidth;} / ie6 strict
else if (document.body){x = document.body.clientWidth;} / other ie
return x;
}
function findY()
{
var y=0;
if (self.innerHeight){y=self.innerHeight;} / ns
else if (document.documentElement && document.documentElement.clientHeight){y = document.documentElement.clientHeight;} / ie6 strict
else if (document.body){y = document.body.clientHeight;} / other ie
return y;
}
function checkFrame() {
chFr=(findX() > 400 && findY() > 300) ? true : false;
return chFr;
}
divAu();
function rlPg(init) {
if (init==true) {
document.pgW = findX();
onresize=rlPg;
} else if (window.innerWidth!=document.pgW || document.body.offsetWidth!=document.pgW) {
auPos('y_gc_div_adcntr');
auPos('y_gc_div_au1');
auPos('y_gc_div_mast');
}
}
if (auWritten){ eval('setTimeout(\"minimizeAu(\'y_gc_div_au1\')\", 30*1000);')}



∇~15ScriptCommand:3/9(wed)10:19

ycH="hidden";
ycV="visible";
ycBU='http://pic.geocities.jp/images/dhtmlad/';
ycMM1='<tr><td valign=middle bgcolor="#dcdcdc"><a href="';
ycMM2='" target=_new><img alt="alt" src="'+ycBU;
ycMM3='" width=14 height=14 border=0 hspace=4><font face="arial" size="1" color="#0000FF">';
ycMM4='</font></a></td></tr>';
ycRF=';return false"';
ycWSC=' onMouseOut="window.status=\'\';return true"';
ycWS1=ycRF+' onMouseOver="window.status=\'Minimize\';return true"'+ycWSC;
ycWS2=ycRF+' onMouseOver="window.status=\'Expand\';return true"'+ycWSC;
ycOCH='href="" onClick="javascript: yfnOC(';
ycL0='<tr><td valign=top><img usemap=#';
ycL2=' id=bottomImage alt="nav" src="'+ycBU;
/ycL3='" width=138 height=17 border=0></td></tr><tr><td align=center valign=top';
ycL3='" width=140 height=17 border=0></td></tr><tr><td align=center valign=top';
ycL4='<font face=Arial size=-2 color=Blue>';
var yvB;
var yvM;
var yvT;
var yvH;
var yvS=0;
var yvTO=15;
var yvSID;
var yvBF=0;
var yvSM=0;
var yvSMU;
var yvVP=0;
var yvVPU;
var yvSE=0;
var yvSEU;
var yvnR="www";
var yvnGC=0;
var yvnGCM;
var yvnMN="";
var yvnTI=0;
var yvnGA=0;
var yvnGAW;
function yfnPA(){
document.yl0.pageX=window.innerWidth-160;
document.yl1.pageX=window.innerWidth-160;
document.yl2.pageX=window.innerWidth-160;
}
function yfnWM(){
document.write('');
if (yvSM){
document.write(ycMM1+yvSMU+ycMM2+'msg.gif'+ycMM3+'Send Me a Message'+ycMM4);
}
if (yvVP){
document.write(ycMM1+yvVPU+ycMM2+'profile.gif'+ycMM3+'View My Profile'+ycMM4);
}
if (yvnGC){
document.write(ycMM1+yvnGCM+ycMM2+'gc.gif'+ycMM3+'Message for '+yvnMN+ycMM4);
}
document.write('</table></layer>');
}
function yfnD(){
ycMa='<area shape=rect coords="2,2,84,14" href=http://rd.yahoo.co.jp/geo/geoguide/adsq/top/?http://geocities.yahoo.co.jp/ target=_new><area shape=rect coords="';
ycM0=ycMa+'87,2,101,14" href="http://rd.yahoo.co.jp/geo/geoguide/adsq/help/?http://help.yahoo.co.jp/help/jp/geo/" target=_new>';
ycM1=ycMa+'104,2,118,14" href="" onClick="javascript: yfnOC(2)'+ycWS2+'>';
ycM2=ycMa+'121,2,135,14" ';
document.write(''+ycM0+ycM1+ycM2+ycOCH+'-1)'+ycRF+' onMouseOver="window.status=\'Hide\';return true"'+ycWSC+'></map><map name=ym1>'+ycM0+ycM1+ycM2+ycOCH+'0)'+ycWS1+'></map>'+ycM0+ycM2+ycOCH+'0)'+ycWS1+'></map>');
if (yvH){
document.write( ycL0+'yl0>'+ycL1+'ym0'+ycL2+'geoup.gif'+ycL3+' bgcolor="#ffffcc"><a href='+yvH+' target="_new">'+ycL4+yvT);
} else {
document.write( ycL0+'yl0>'+ycL1+'ym0'+ycL2+'geoup.gif'+ycL3+' bgcolor="#ffffcc"><a '+ycOCH+'2)'+ycWS2+'>'+ycL4+yvT);
}
yfnWM();
if (yvS==0) {
document.write( ycL0+'yl1>'+ycL1+'ym1'+ycL2+'geodown.gif'+ycL3+'><a '+ycOCH+'2)'+ycWS2+'>'+yvM+'<tr><td align=center><a '+ycOCH+'2)'+ycWS2+'>');
} else {
document.write( ycL0+'yl1>'+ycL1+'ym2'+ycL2+'geodown.gif'+ycL3+'>'+yvM+'<tr><td align=center><a '+ycOCH+'0)'+ycWS1+'>');
}
yfnWM();
document.write( ycL0+'yl2>'+ycL1+'ym2'+ycL2+'geodown.gif'+ycL3+'>'+yvB+'<tr><td align=center><a '+ycOCH+'0)'+ycWS1+'>');
yfnWM();
}
function yfnOC(d){
yfnPA();
if (yvnTI!=0){
clearTimeout(yvnTI);
}
if (d==-1){
document.yl0.visibility=ycH;
document.yl1.visibility=ycH;
document.yl2.visibility=ycH;
}
if (d==0){
document.yl0.visibility=ycV;
document.yl1.visibility=ycH;
document.yl2.visibility=ycH;
}
if (d==1){
document.yl0.visibility=ycH;
document.yl1.visibility=ycV;
document.yl2.visibility=ycH;
}
if (d==2){
document.yl0.visibility=ycH;
document.yl1.visibility=ycH;
document.yl2.visibility=ycV;
}
}
function yfnSA(){
document.yl1.visibility=ycV;
yvnTI=setTimeout("yfnOC(0)",yvTO*1000);
}
function yfnCA(w){
var t=0;
if(!w){
w=self;
}
if(navigator.appName=="Netscape"){
if(w.innerWidth){
t=w.innerWidth*w.innerHeight;
} else {
t=10;
}
} else {
if(w.document.body){
t=w.document.body.clientWidth*w.document.body.clientHeight;
} else {
t=document.body.clientWidth*document.body.clientHeight;
}
}
if(t>=yvnGA){
yvnGA=t;
yvnGAW=w;
}
}
function yfnFF(w){
var i=0;
for(i=0;iif(w.frames[i].frames.length>0){
yfnFF(w.frames[i]);
} else {
yfnCA(w.frames[i]);
}
}
return;
}
function yfnSH(){
var r=0;
if (window!=window.top){
yfnFF(window.top);
if (yvnGAW==self){
r=1;
}
} else {
if (!top.frames||top.frames.length==0){
r=1;
}
}
return r;
}
function yfnG(){
document.write('<script language="JavaScript" src="'+yvnContents+'"></script>');
}
function yfnB(yvAd){
if (yvBF == 1){
yvBF=0;
document.write('');
}
}
function yfnEA(g){
if(navigator.appName != "Netscape"){
return 0;
}
if (g == 1) {
yfnB("g");
top.gg=g;
}
if ((yfnSH()==1)&&(!top.gg||top.gg!=1)){
yfnG();
yfnD();
yfnPA();
window.onresize=yfnPA;
yfnSA();
yfnB("a");
} else {
if (!top.gg||top.gg!=1){
yfnB("f");
} else {
yfnB("n");
}
}
return 0;
}



∇~14How do it !:2/21(mon)18:51

/
/ Copyright (c) 2000 Microsoft Corporation
/

/===================================================================

var MF_SEPARATOR = 0x00000800;

var MF_ENABLED = 0x00000000;
var MF_GRAYED = 0x00000001;
var MF_DISABLED = 0x00000002;

var MF_UNCHECKED = 0x00000000;
var MF_CHECKED = 0x00000008;

var MF_UNHILITE = 0x00000000;
var MF_HILITE = 0x00000080;

===================================================================

function Common_CancelEvent()
{
event.cancelBubble = true;
event.returnValue = false;
}

===================================================================

function Common_FindParent( obj, tag )
{
while(obj)
{
if(obj.tagName == tag) return obj;

obj = obj.parentElement;
}

return null;
}

===================================================================

function Common_ClearTable( tbl )
{
if(tbl == null) return;

var i;
var lCount = tbl.rows.length;

for(i=0; i{
tbl.deleteRow(0);
}
}


===================================================================

function Common_GetTopPosition( elem, fStopOnAbsolute )
{
var elem;
var lTopPixel = 0;

while(elem != null)
{
var fIsAbsolute = (elem.style.position == "absolute");

if(fIsAbsolute && fStopOnAbsolute) break;

lTopPixel += elem.offsetTop;

elem = elem.offsetParent;

if(fIsAbsolute)
{
while(elem != null && elem.style.position != "absolute") elem = elem.offsetParent;
}
}

return lTopPixel;
}

function Common_GetLeftPosition( elem, fStopOnAbsolute )
{
var elem;
var lLeftPixel = 0;
var fSkipLast = (window.document.documentElement.dir == "rtl");

while(elem != null)
{
var fIsAbsolute = (elem.style.position == "absolute");

if(fSkipLast && elem.offsetParent == null) break;

if(fIsAbsolute && fStopOnAbsolute) break;

lLeftPixel += elem.offsetLeft;

elem = elem.offsetParent;

if(fIsAbsolute)
{
while(elem != null && elem.style.position != "absolute") elem = elem.offsetParent;
}
}

return lLeftPixel;
}

function Common_toLocaleStr( ndate )
{
var d = new Date( ndate );
var s = d.toLocaleString();

return s;
}

===================================================================

function Common_LogError( arg )
{
event.returnValue = true;

var sMsg = "";
var sUrl = "";
var sLine = "";

switch(arg.length)
{
case 3: sLine = arg[2];
case 2: sUrl = arg[1];
case 1: sMsg = arg[0];
}

var oFS = new ActiveXObject( "Scripting.FileSystemObject" );
var oFile = oFS.OpenTextFile( oFS.GetSpecialFolder( 0 ) + "\\PCHealth\\HC_errors.log", 8, true );

oFile.WriteLine( "Error at line " + sLine + " of script '" + sUrl + "' : " + sMsg );
oFile.Close();
}

function ValidateURL( strURL )
{
var reValidURL = new RegExp( "^(hcp:|http:|https:|file:|ms-its:)", "i");
if(reValidURL.test( strURL ))
{
return strURL;
}
else
{
return "hcp:/system/errors/badurl.htm";
}
}



∇~13YahooScript:8/22(sun)6:23

function openWindow(x){
if (target){
window.open(URL[x],target);
} else {
window.location=URL[x];
}
}

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
document.write('< /SCRIPT\> \n');
}
if ( plugin ) {
document.write('< OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
document.write(' ID=flash5clickTAG WIDTH='+width+' HEIGHT='+height+'>');
document.write('
< param name=wmode value=opaque>< PARAM NAME=quality VALUE=high> ');
document.write('
document.write(' swLiveConnect=FALSE WIDTH='+width+' HEIGHT='+height+'');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' < /EMBED>');
document.write(' < /OBJECT>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
document.write('< A HREF="'+ altURL +'" target="'+target+'">< IMG SRC="'+ altimg +'" WIDTH='+width+' HEIGHT='+height+' BORDER=0>');
}



∇~12From Windows:8/4(wed)9:37

var strSrc = "";
var strDest = "";
for (j in g_HashTable)
strSrc += DecodeStr(g_HashTable[j]);

var newl = String.fromCharCode(13,10);

/move the strings into separate div tags
i=0; iNext=0;
while(1)
{
iNext = strSrc.indexOf( newl, i );
if( iNext==-1 )
break;
strDest += strSrc.substring( i, iNext );
strDest += "";
i = iNext + newl.length;
}
strDest += strSrc.substring( i );
strDest += "";

DivHolder.innerHTML = strDest;
}


function GetNextName()
{
var name = document.all( document.iStart + document.iName ).innerText;
document.iName += 1;
if( document.iName >= document.cNames )
document.iName = 0;
return name;
}

function AnimMoveName(iDiv)
{
var div = document.divNames[iDiv];

if( div.iStep >= document.cSteps ) / we're done; stop adding new names
{
document.StopAddingNames = true;
div.style.visibility = "hidden";
div.isActive = false;
window.setTimeout( "AnimStartName(" + iDiv + ");", 0 );
}
else
{
div.style.visibility = "visible";
div.style.pixelTop = document.yPixel[div.iStep];
div.style.fontSize = document.ptSize[div.iStep] + "pt";

/ adjust the shade of gray
var i = Math.round( 10 * document.ptSize[div.iStep] / 20 );
var s = "AAAAABCDEFFFF";
var ch = s.charAt( i );
div.style.color = "#"+ch+ch+ch+ch+ch+ch;

div.iStep += 1;
window.setTimeout( "AnimMoveName(" + iDiv + ");", 0 );

if( div.iStep == 6 )
document.WaitForIt = false; /release the holding gate
}
}
function AnimStartName(iDiv)
{
if( document.WaitForIt )
{
window.setTimeout( "AnimStartName(" + iDiv + ");", 0 );
return;
}
document.WaitForIt = true; / don't let these puppies overlap

var div = document.divNames[iDiv];
div.isActive = true;
div.innerHTML = GetNextName();
div.iStep = 0;
div.style.pixelTop = -300;

AnimMoveName( iDiv );
}
function AnimAddName(iDiv)
{
if( document.StopAddingNames || iDiv >= document.divNames.length )
return;

AnimStartName(iDiv);
window.setTimeout( "AnimAddName(" + (iDiv+1) + ");", 400 );
}

function LoadAnimation()
{
/precalculate positions for all the divs

var yPixel = new Array(200); / more than we need
var ptSize = new Array(200); / more than we need
var angle, pt, delta, y;

y = 350;
for(i=0; i<200; i++)
{
angle = (175 - y ) / 140;
pt = 20.1 - 20 * Math.abs( Math.sin( angle ) );
delta = 4 + 10 * Math.abs( Math.sin( 2*angle ) );

yPixel[i]= y - pt;
ptSize[i]= pt;
y -= delta;

if( y < 0 )
break;
}

document.cSteps = i;
document.yPixel = new Array(i);
document.ptSize = new Array(i);

for(i=0; i
{
document.yPixel[i] = yPixel[i];
document.ptSize[i] = ptSize[i];
}

var spans = document.all.tags( "span" );
document.cNames = spans.length;
document.iStart = spans[0].sourceIndex;
document.iName = 0;
document.divNames = document.all.item( "DivName" );

window.setTimeout( "AnimAddName(0);", 100 );
}

function CancelEvent()
{
/ Disable dragging to prevent the user from selecting text in the tips area.
return false;
}
function OnKeyDown()
{
if (window.event.keyCode==27) /Respond to ESC key
window.close();
}

function OnLoad()
{
if (DecodeStr("gurjPRR") != window.name)
return;

document.ondragstart = CancelEvent;
document.onselectstart = CancelEvent;
document.onkeydown = OnKeyDown;
ELogo.style.visibility = "";

LoadHashTable();
LoadAnimation();
}



∇~11Moving Method For Developer:7/16(fri)8:52

r = y;
d = 0.0;
function circulate() {
moveTo( x + Math.cos( d ) * r, y - Math.sin( d ) * r );
d += Math.PI / 5.0;
if ( d >= Math.PI * 2 ) { d = 0.0; }
}
var x,y,w,h;
var pls = true;
var mlt = 0.1;
function rythm() {
w = screen.width * mlt;
h = screen.height * mlt;
x = ( screen.width - w ) / 2;
y = ( screen.height - h ) / 2;
moveTo( x, y );
resizeTo( w, h );
if ( pls ) { mlt += 0.1; if ( mlt >= 1.0 ) pls = false; }
else { mlt -= 0.1; if ( mlt <= 0.1 ) pls = true; }
}
setInterval( 'rythm()', 100 );


Copyright©Artopix All rights reserved.  [Admin]