마우스 올리면 멈추고 마우스 떼면 움직이고 속도조절 가능하고 화면안에서만 움직이고,
그냥 찾다가 하나 얻어걸려서 올려요 ^^
<div id="img" style="width:200px; height:200px; position:absolute; left:50px; top:50px; z-index:1;">
<a href="http://www.여기에원하는주소"><img src="bird.gif" border="0" onMouseover="pauseResume();" onMouseout="pauseResume();"></a>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Justin Arruda (JArruda@mindspring.com) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var step = 1; //높을수록 빠릅니다.
var delay = 50; //delay입니다. 놓을수록 느리고 낮을수록 빠릅니다.
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
var name = navigator.appName;
if(name == "Microsoft Internet Explorer") name = true;
else name = false;
var xPos = 20;
if(name) var yPos = document.body.clientHeight;
else var yPos = window.innerHeight;
function changePos() {
if(name) {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = img.offsetHeight;
Woffset = img.offsetWidth;
img.style.left = xPos + document.body.scrollLeft;
img.style.top = yPos + document.body.scrollTop;
}
else {
height = window.innerHeight;
width = window.innerWidth;
Hoffset = document.img.clip.height;
Woffset = document.img.clip.width;
document.img.pageY = yPos + window.pageYOffset;
document.img.pageX = xPos + window.pageXOffset;
}
if (yon) {
yPos = yPos + step;
}
else {
yPos = yPos - step;
}
if (yPos < 0) {
yon = 1;
yPos = 0;
}
if (yPos >= (height - Hoffset)) {
yon = 0;
yPos = (height - Hoffset);
}
if (xon) {
xPos = xPos + step;
}
else {
xPos = xPos - step;
}
if (xPos < 0) {
xon = 1;
xPos = 0;
}
if (xPos >= (width - Woffset)) {
xon = 0;
xPos = (width - Woffset);
}
}
function start() {
if(name) img.visibility = "visible";
else document.img.visibility = "visible";
interval = setInterval('changePos()',delay);
}
function pauseResume() {
if(pause) {
clearInterval(interval);
pause = false;
}
else {
interval = setInterval('changePos()',delay);
pause = true;
}
}
start();
// End -->
</script>
바디 안에다가 넣으면 됩니다 ^^
댓글 5개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1930 | 17년 전 | 3002 | ||
| 1929 | 17년 전 | 1878 | ||
| 1928 | 17년 전 | 3992 | ||
| 1927 | 17년 전 | 1409 | ||
| 1926 |
지엔소프트
|
17년 전 | 1126 | |
| 1925 |
보드타는찌니
|
17년 전 | 1243 | |
| 1924 |
choijinhee
|
17년 전 | 1126 | |
| 1923 | 17년 전 | 1388 | ||
| 1922 | 17년 전 | 1746 | ||
| 1921 | 17년 전 | 2337 | ||
| 1920 | 17년 전 | 2415 | ||
| 1919 | 17년 전 | 1418 | ||
| 1918 | 17년 전 | 1168 | ||
| 1917 | 17년 전 | 2437 | ||
| 1916 | 17년 전 | 2869 | ||
| 1915 |
|
17년 전 | 3233 | |
| 1914 | 17년 전 | 3172 | ||
| 1913 | 17년 전 | 2338 | ||
| 1912 | 17년 전 | 3754 | ||
| 1911 | 17년 전 | 3184 | ||
| 1910 | 17년 전 | 5506 | ||
| 1909 | 17년 전 | 2657 | ||
| 1908 | 17년 전 | 1860 | ||
| 1907 | 17년 전 | 1934 | ||
| 1906 | 17년 전 | 1776 | ||
| 1905 | 17년 전 | 1706 | ||
| 1904 | 17년 전 | 2767 | ||
| 1903 | 17년 전 | 1893 | ||
| 1902 | 17년 전 | 1581 | ||
| 1901 | 17년 전 | 2071 | ||
| 1900 |
stuartkim
|
17년 전 | 1137 | |
| 1899 | 17년 전 | 1667 | ||
| 1898 | 17년 전 | 2882 | ||
| 1897 | 17년 전 | 2126 | ||
| 1896 | 17년 전 | 1820 | ||
| 1895 | 17년 전 | 2036 | ||
| 1894 | 17년 전 | 1324 | ||
| 1893 | 17년 전 | 1716 | ||
| 1892 | 17년 전 | 1214 | ||
| 1891 | 17년 전 | 1776 | ||
| 1890 | 17년 전 | 1804 | ||
| 1889 | 17년 전 | 1040 | ||
| 1888 | 17년 전 | 3136 | ||
| 1887 | 17년 전 | 4316 | ||
| 1886 | 17년 전 | 2462 | ||
| 1885 | 17년 전 | 7474 | ||
| 1884 | 17년 전 | 3838 | ||
| 1883 | 17년 전 | 4169 | ||
| 1882 | 17년 전 | 2426 | ||
| 1881 | 17년 전 | 2888 | ||
| 1880 | 17년 전 | 3638 | ||
| 1879 | 17년 전 | 4006 | ||
| 1878 | 17년 전 | 3167 | ||
| 1877 | 17년 전 | 3147 | ||
| 1876 | 17년 전 | 3296 | ||
| 1875 | 17년 전 | 2463 | ||
| 1874 | 17년 전 | 2059 | ||
| 1873 | 17년 전 | 3109 | ||
| 1872 | 17년 전 | 3258 | ||
| 1871 | 17년 전 | 4611 | ||
| 1870 | 17년 전 | 1592 | ||
| 1869 | 17년 전 | 2616 | ||
| 1868 | 17년 전 | 2689 | ||
| 1867 | 17년 전 | 1901 | ||
| 1866 | 17년 전 | 2220 | ||
| 1865 | 17년 전 | 1837 | ||
| 1864 | 17년 전 | 2371 | ||
| 1863 | 17년 전 | 3777 | ||
| 1862 | 17년 전 | 3895 | ||
| 1861 | 17년 전 | 2083 | ||
| 1860 | 17년 전 | 1360 | ||
| 1859 | 17년 전 | 1496 | ||
| 1858 |
|
17년 전 | 1650 | |
| 1857 | 17년 전 | 1633 | ||
| 1856 |
보드타는찌니
|
17년 전 | 1397 | |
| 1855 | 17년 전 | 1543 | ||
| 1854 |
|
17년 전 | 1360 | |
| 1853 | 17년 전 | 1849 | ||
| 1852 | 17년 전 | 2749 | ||
| 1851 | 17년 전 | 1849 | ||
| 1850 |
|
17년 전 | 1403 | |
| 1849 |
|
17년 전 | 1690 | |
| 1848 |
|
17년 전 | 2329 | |
| 1847 | 17년 전 | 1944 | ||
| 1846 |
은사시나무
|
17년 전 | 1264 | |
| 1845 |
갈색야생마
|
17년 전 | 5904 | |
| 1844 |
갈색야생마
|
17년 전 | 3282 | |
| 1843 |
갈색야생마
|
17년 전 | 3178 | |
| 1842 |
갈색야생마
|
17년 전 | 2589 | |
| 1841 |
갈색야생마
|
17년 전 | 2771 | |
| 1840 |
갈색야생마
|
17년 전 | 2719 | |
| 1839 |
갈색야생마
|
17년 전 | 3226 | |
| 1838 |
갈색야생마
|
17년 전 | 2353 | |
| 1837 |
갈색야생마
|
17년 전 | 2471 | |
| 1836 |
갈색야생마
|
17년 전 | 2532 | |
| 1835 |
갈색야생마
|
17년 전 | 2525 | |
| 1834 |
갈색야생마
|
17년 전 | 2667 | |
| 1833 |
갈색야생마
|
17년 전 | 3188 | |
| 1832 |
갈색야생마
|
17년 전 | 2701 | |
| 1831 |
갈색야생마
|
17년 전 | 1427 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기