- 1
- 2
- 3
- 4
//простите меня за эти строки, но просто альтернативный метод swapNode (нативный только в IE)
//удаляет оригинальный нод и его приходится заново по id искать :(
document.getElementById(element['drag'].id).style.border = "2px solid gray";
document.getElementById(element['acce'].id).style.border = "2px solid gray";
$('#'+element['acce'].id).css('border','2px solid gray');
jQuery рулит :).
Да, лучше так, сразу не сообразил.
этот код не предполагал наличия фрейморков.
var ids=new Array('drag','acce');
for(i=0;i<ids.length-1;i++) document.getElementById(element[ids[i]].id).style.border = "2px solid gray";
а ещё лучше drag и acce сделать собснна айдишниками
IT bag: [url=http://www.christianlouboutinmy.com/yves-saint-laurent-c-27.html]yves saint laurent[/url],
[url=http://www.christianlouboutinmy.com]christian louboutin [/url] for spring,[url=http://www.handbagsboots.com/]louis vuitton handbags[/url] for Summer,[url=http://www.handbagcom.com/loewe-c-13.html]loewe handbags[/url] for autumn,[url=http://www.handbagcom.com/coach-c-15.html]Coach handbags[/url] or other [url=http://www.handbagcom.com/]replica handbags[/url] for Winter.
You have to wear the [url=http://www.christianlouboutinmy.com]christian louboutin[/url] when you go to parties.When you are on a journey,you should wear a pair of [url=http://www.christianlouboutinmy.com/jimmy-choo-shoes-c-21.html]jimmy choo shoes[/url].Nike is very nessisary when you donging sports.You should buy the [url=http://www.bootsluxury.com/]ugg boots[/url]([url=http://www.bootsluxury.com/classic-short-c-5.html]UGG Classic Short[/url] or [url=http://www.bootsluxury.com/classic-tall-c-6.html]UGG Classic Tall[/url]) for your watery foots.
[url=http://www.ptsell.com]nike shoes[/url] [url=http://www.ptsell.com]gucci shoes[/url] [url=http://www.ptsell.com]david yurman[/url][url=http://www.handbagcom.com/]replica handbag[/url]