Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all..
my doubts is am open a website, in that page one add is display if press the close button the add is not close just it move the down page and again i press the close button it open if any one give the advice how to write the code for that type of example... thanx in advance..
Posted
Comments
Chandrashekar SK 23-Nov-12 5:54am    
What i understood is this.. "You have a webpage and there is an ad being displayed. If someone tries to close the ad, the page scrolls down to the end. If clicked again, it will come back to normal position."
mahesh202 23-Nov-12 6:13am    
yes.. so how to write this
Chandrashekar SK 23-Nov-12 6:23am    
Try with java script. Call this code when its the add is clicked.

function pageScroll() {
window.scrollBy(0,50); // horizontal and vertical scroll increments
scrolldelay = setTimeout('pageScroll()',100); // scrolls every 100 milliseconds
}
mahesh202 23-Nov-12 7:24am    
i mean not to close automatically when i close the special window .....if u r not understood my question please once check the
site:http://www.eai.in/
bbirajdar 23-Nov-12 6:57am    
Close the page

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900