Friday, 19-Apr-2024, 6:46 PM


Main
Sign Up
Login
Wains Organization Welcome Guest | RSS  
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum » For Webmasters » Custom Solution » 2 Automatic window on webpage load (2 different ways to display ajax window on webpage.)
2 Automatic window on webpage load
AlexDate: Wednesday, 13-Mar-2013, 12:41 PM | Message # 1
Wains Org Creator!
Group: Head Admin
Messages: 8
Awards: 0
Reputation: 10
Status: Offline
I wrote the following codes where customised by myself. However their sources belong to their rightful owners, DO NOT claim them as your own work. Both scripts have been tested and work.

1. Automatic AJAX window in center of page 
Place the following script between the header tags

 
Code
<script type="text/javascript">  
window.onload = function ajaxauto(){  
var ajax_data = 'content goes here'; new _uWnd('myname','title',300,350,{shadow:1,autosize:1,modal:0,close:1},ajax_data);}  
</script>


2. Automatic AJAX window in bottom right of your page 
Place the following script between the header tags

Code
<script type="text/javascript">  
window.onload = function ajaxbtm() {_uWnd.alert('Content goes here','Title',{w:500,h:100,tm:10000});}  
</script>


'Content goes here' - The content 
'Title' - The title 
300,350 / w:500,h:100 - The size measured in pixels (px) 
tm:10000 - Duration before window closes


 
Forum » For Webmasters » Custom Solution » 2 Automatic window on webpage load (2 different ways to display ajax window on webpage.)
  • Page 1 of 1
  • 1
Search:

Copyright Wains Org. © 2024Powered by uCoz / Customization by Ali Ameen Wains / About AdminPrivacy Policy