2009년 9월 17일 목요일

자바스크립트 마우스 오버하면 흔들리는 이미지

<style>
.shakeimage
{
position:relative
}
</style>

<script>
var rector=3
var stopit=0
var a=1

function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}

function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>

 

자바스크립트 작은 이미지 클릭해서 미리보기

<script>

var ie=document.all
var ns=document.layers
var ns6=document.getElementById&&!document.all

function enlarge(which,e){

if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (crossobj.style.visibility=="hidden"){
crossobj.style.left=ns6? pageXOffset+e.clientX : document.body.scrollLeft+event.clientX
crossobj.style.top=ns6? pageYOffset+e.clientY : document.body.scrollTop+event.clientY
crossobj.innerHTML='<div align=right id=drag><b onClick=closepreview()>[Close]</b></div><img src="'+which+'">'
crossobj.style.visibility="visible"
}
else
crossobj.style.visibility="hidden"
return false
}

else
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

</script>

 

JSP 세션 타임아웃시 로그인창 띄우기

<script>

function expireSession()
{
  window.location = "login.jsp";
}

setTimeout('expireSession()', <%= request.getSession().getMaxInactiveInterval() * 1000 %>);

</script>

2009년 9월 5일 토요일

무설치 포토샵 사이트


 
http://www.sumo.fi/products/sumopaint/index.php

위의 링크를 클릭하시면 설치하지 않고도 간편하게 포토샵을 사용할 수 있습니다.
웹에서 Flash 로 거의 모든 기능이 된다고 보면 되겠습니다.
포토샵 7 정도는 되는것 같네요^^
 
 
출 처 : Solomoon

2009년 9월 4일 금요일

위지윅 에디터

01. YUI Rich Text Editor
URL :
developer.yahoo.com/yui/editor/
Yahoo! Developer Network에 있는 Yahoo! UI Library 에서 제공하는 Text Editor ..
YUI 도입시 함께 사용하면 좋을 듯..

02. JavaScript WYSIWIG editor TinyMCE
URL :
tinymce.moxiecode.com
Freeware Plugins - www.pixey.de/3-tiny-mce-freeware-plugins/

03. FCK Editor
URL :
www.fckeditor.net
[next version] : http://ckeditor.com
많이 사용하는 Editor 입니다.

04. Xinha Open Source Online HTML Editor
URL :
xinha.webfactional.com

05. WYM editor
URL :
www.wymeditor.org

06. NicEdit
URL :
nicedit.com
가볍다..

07. FreeRichTextEditor
URL : www.freerichtexteditor.com

08. SmartMarkUP - Universal Markup Editor
URL : www.phpcow.com/smartmarkup/
JQuery 사용.

09. jQuery Universal Markup Editor <markitup/>
URL : markitup.jaysalvat.com/home/