mknjhill Posted April 15, 2011 Share Posted April 15, 2011 I have little info and error boxes arround my site, well my first question is how can I make them close after x seconds, and prob a little harder is if i put a little close 'X' in the top corner how can i close it? hoping its not too difficult. the error design is css, then i have php for holidays ect. any help would be great! Link to comment https://forums.phpfreaks.com/topic/233852-couple-questions/ Share on other sites More sharing options...
KevinM1 Posted April 15, 2011 Share Posted April 15, 2011 For the first, grab the boxes by their ids, then use setTimeout to close them. For the second, simply add an onclick event handler to your 'X' buttons, and have that handler function close the box. Link to comment https://forums.phpfreaks.com/topic/233852-couple-questions/#findComment-1202193 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.