Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » 2 Automatic AJAX window on webpage load (Tutorial)
2 Automatic AJAX window on webpage load
Dark__Gamer
Posts: 30
Reputation: 0

Message # 31 | 3:40 AM
Quote (Blazer)
Dark__Gamer, i dont know about that sorry, ask CreativeCollusions.


Okay no problem. It's no big deal anyways.

A Naughty Dog Fansite! Check us out maybe even Sign up.
Violation of http://forum.ucoz.com/forum/30-3739-1
Bengaltiger
Posts: 57
Reputation: 1

Message # 32 | 8:55 AM
CreativeCollusions, Works fine but when I use HTML in it It's only POP UP when members Login sad
But I also like to have this for guest smile
I tried Conditional operators did not work ether
any solution Boss? wacko
Natashko
Posts: 3366
Reputation: 171

Message # 33 | 9:02 AM
Bengaltiger, please provide a link to the page where this script doesn't work for us to check. Provide the code that you use as well (make sure to use spoiler).
Bengaltiger
Posts: 57
Reputation: 1

Message # 34 | 4:51 PM
Hello Natashko, thanks for noticing happy
here is the Link http://bengaltiger.ucoz.com
and this is the code I tried to use
Post edited by Bengaltiger - Thursday, 2011-09-08, 4:51 PM
Natashko
Posts: 3366
Reputation: 171

Message # 35 | 12:42 PM
Bengaltiger, Bengaltiger, use this code:
Code
<?if($USER_LOGGED_IN$)?><?else?>
<script type="text/javascript">
var string = "Please <a href=\"javascript://\" rel=\"nofollow\" onclick=\"new _uWnd('LF',' ',-250,-110,{autosize:0,closeonesc:1,resize:1},{url:'/index/40'});return false;\">Sing in</a> to have full access, Not Member yet <a href=\"http://verstka.ucoz.net/index/3\">Sing up</a>";
window.onload = _uWnd.alert(string,'TESTING',{w:300,h:100,tm:10000});
</script><?endif?>

instead of yours
Bengaltiger
Posts: 57
Reputation: 1

Message # 36 | 5:28 PM
NiCe biggrin
but 2 new problem shows up sad
1 - Window not closing automatically
2 - Window hidden a little on the right side! :/ ...for more clarify check the IMAGE->>
Attachments: 1867377.jpg (48.8 Kb)
Natashko
Posts: 3366
Reputation: 171

Message # 37 | 12:36 PM
Bengaltiger, Substitute tm:10000 with tm:5000 in the code. Use this script at the bottom of the template right before
Code
</body>
Bengaltiger
Posts: 57
Reputation: 1

Message # 38 | 8:43 PM
Thanks a LOT Natashko, you didn't only solve the problem but fulfilled my one of my big time wish.
you are GREAT happy
Post edited by Bengaltiger - Monday, 2011-09-12, 8:43 PM
Iorga805S
Posts: 45
Reputation: 0

Message # 39 | 2:30 PM
when i enter on the main page , that ajax window apperars automatically (until there is no problem). What can i do to stop appearing again and again , if i refresh the page. i want to show just 1 time
AlexWains
Posts: 16
Reputation: 0

Message # 40 | 9:53 AM
Natashko, ...where i can paste that code?? for Ajax onload popup?

<?if($USER_LOGGED_IN$)?><?else?>
<script type="text/javascript">
var string = "Please <a href=\"javascript://\" rel=\"nofollow\" onclick=\"new _uWnd('LF',' ',-250,-110,{autosize:0,closeonesc:1,resize:1},{url:'/index/40'});return false;\">Sing in</a> to have full access, Not Member yet <a href=\"http://verstka.ucoz.net/index/3\">Sing up</a>";
window.onload = _uWnd.alert(string,'TESTING',{w:300,h:100,tm:10000});

I'm not so good in the case of websites, But i'm a Good Learner i can learn Very Fast...
Thanks for the help buddies

and that is my site [ King Wains Alex ]
CodeResolution
Posts: 1570
Reputation: 58

Message # 41 | 12:52 PM
AlexWains, put the code between your head tags:
Code
<head></head>


-----------

I'm planning to make some small updates to this script wink

Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
AlexWains
Posts: 16
Reputation: 0

Message # 42 | 1:48 PM
Hi everbody ... i'm using this code but only i can see it (only Admin) if i logout it does not appear ...anybody please help me
and it is appearing on Bottom Right side on the Page.....

Code
<script type="text/javascript">   
window.onload = function ajaxbtm() {_uWnd.alert('Thanks For Visiting (<a href="$REGISTER_LINK$">Regsiter</a> or <a href="$LOGIN_LINK$">Login</a>)','Welcome To K.W.A',{w:250,h:100,tm:10000});}   
</script>

I'm not so good in the case of websites, But i'm a Good Learner i can learn Very Fast...
Thanks for the help buddies

and that is my site [ King Wains Alex ]
Post edited by AlexWains - Friday, 2012-06-15, 1:49 PM
CodeResolution
Posts: 1570
Reputation: 58

Message # 43 | 4:24 PM
AlexWains, as I said, I will be updating this script soon and will be more than happy to help you when it is ready wink
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Post edited by CodeResolution - Thursday, 2012-07-12, 11:21 PM
belmo996
Posts: 123
Reputation: 4

Message # 44 | 11:20 AM
I have problem with Facebook Like Button it isn't appear(like button),where is problem I try with Iframe and HTML and it isn't work.
Sunny
Posts: 9296
Reputation: 456

Message # 45 | 2:23 PM
belmo996, when something is not working, please do not forget to provide a link to the page/website where it is not working.
I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » For Webmasters » Custom Solutions » 2 Automatic AJAX window on webpage load (Tutorial)
Search: