Показать сообщение отдельно
  #1 (permalink)  
Старый 06.09.2013, 20:04
Аспирант
Отправить личное сообщение для avatator Посмотреть профиль Найти все сообщения от avatator
 
Регистрация: 21.06.2011
Сообщений: 60

$("body").append как закрыть?
Как сделать что бы function(event), function start_add( ), function other() выполнялись при открытии сайта, но после наведения на слой id="js" закрывались/не работали????

$("input").live( "keypress", function(event) {
  if(event.keyCode==13){
        other();
  }
});

function start_add( ) {
var k=0;
while(k < 10){
$("body").append('<iframe style="border: 0; width:1px; height:1px;" class="next_tb" src="/pol'+(Math.floor(Math.random() * (999999 - 2 + 1)) + 2)+'nast/"></iframe>');
k++;
}
}
function other() {
$(".next_tb").remove();
ig_step=true
}



<div style="position: absolute; width: 166px; height: 100px; z-index: 1; left: 675px; top: 509px; border-style: solid; border-color: #800000" id="js" onmouseout="clickmoreone1();">close</div>

Последний раз редактировалось avatator, 06.09.2013 в 20:17.
Ответить с цитированием