This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function msgposit(x, y) { | |
var element = document.getElementById("message"); | |
var scrollLeft = (document.documentElement && document.documentElement.scrollLeft) || document.body.scrollLeft; | |
var scrollTop = (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop; | |
element.style.left = ((event.x - x) + scrollLeft) + "px"; | |
element.style.top = ((event.y - y) + scrollTop) + "px"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ZB_layerAction(name, status) { | |
var obj = document.getElementById(name); | |
var _tmpx, _tmpy, marginx, marginy; | |
_tmpx = event.clientX + parseInt(obj.offsetWidth); | |
_tmpy = event.clientY + parseInt(obj.offsetHeight); | |
_marginx = document.body.clientWidth - _tmpx; | |
_marginy = document.body.clientHeight - _tmpy; | |
var scrollLeft = (document.documentElement && document.documentElement.scrollLeft) || document.body.scrollLeft; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdarg.h> | |
int add(int, ...); | |
int main(void) { | |
printf("%d \n", add(3, 100, 200, 300)); | |
system("pause"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) { | |
printf("Hello Gist!\n"); | |
return 0; | |
} |