Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-21-2009, 04:30 PM   #1
Banned
War Room Member
 
Join Date: May 2009
Posts: 349
Blog Entries: 1
Thanks: 20
Thanked 28 Times in 17 Posts
Default Peeling corner on exit

Hi all. I have a peeling corner on one of our websites that appears when the user visits the site. What I want it to do is for it to appear upon exit: ie. when the user moves to the back button or to close out the page. Anyone have any ideas???
belgirl is offline   Reply With Quote
Old 10-22-2009, 01:50 AM   #2
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: Peeling corner on exit

Hi Belinda

Could you tell us what script or plugin you are using to create the "peeling" effect? If I knew perhaps I could figure out how to tie it in to an event when you exit the page.

All the best...

Bill
mywebwork is offline   Reply With Quote
Old 10-22-2009, 08:00 AM   #3
Banned
War Room Member
 
Join Date: May 2009
Posts: 349
Blog Entries: 1
Thanks: 20
Thanked 28 Times in 17 Posts
Default Re: Peeling corner on exit

Hi Bill--
I am using the script found here:

How to create a peeling corner on your website that can contain advertations or anything else.



Quote:
Originally Posted by mywebwork View Post
Hi Belinda

Could you tell us what script or plugin you are using to create the "peeling" effect? If I knew perhaps I could figure out how to tie it in to an event when you exit the page.

All the best...

Bill
belgirl is offline   Reply With Quote
Old 10-22-2009, 09:27 AM   #4
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: Peeling corner on exit

Hi Belinda

I haven't actually tried it but by looking at it I think I see how you could do this:

1 - Remove or comment out the last line in your peel.js script (line # 64).

2 - Replace or edit the BODY tag of your index.html or index.php as follows:

Code:
<BODY onUnload="jaaspeel.putObjects()">
I believe that should do the trick - let me know how it works for you (or if it doesn't!).

Bill
mywebwork is offline   Reply With Quote
Old 10-22-2009, 10:27 AM   #5
Banned
War Room Member
 
Join Date: May 2009
Posts: 349
Blog Entries: 1
Thanks: 20
Thanked 28 Times in 17 Posts
Default Re: Peeling corner on exit

Nope, didn't work...
belgirl is offline   Reply With Quote
Old 10-22-2009, 01:28 PM   #6
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: Peeling corner on exit

Hi Belinda

Does it still run the peeling script when the site loads (it shouldn't with the last line removed)? And are you still including the peel.js script with the document head (not body) using this line:

Code:
<script src="peel/peel.js" type="text/javascript"></script>
Sorry it didn't work for you, if I get a chance later today I'll try a sample myself.

Bill
mywebwork is offline   Reply With Quote
Old 10-22-2009, 03:59 PM   #7
Banned
War Room Member
 
Join Date: May 2009
Posts: 349
Blog Entries: 1
Thanks: 20
Thanked 28 Times in 17 Posts
Default Re: Peeling corner on exit

Let me try putting the script source in the head and see if that works. It doesn't load when the page loads, but nothing happens if I go to close out the browser or hit the bck button either...
belgirl is offline   Reply With Quote
Old 10-22-2009, 04:27 PM   #8
Banned
War Room Member
 
Join Date: May 2009
Posts: 349
Blog Entries: 1
Thanks: 20
Thanked 28 Times in 17 Posts
Default Re: Peeling corner on exit

Nope, still didn't work... Your help is greatly appreciated though. What I think some people do is put some hidden div or tag in the html that when moused over in an attempt to close out the page brings up the script...
belgirl is offline   Reply With Quote
Old 10-22-2009, 06:45 PM   #9
Banned
War Room Member
 
Join Date: May 2009
Posts: 349
Blog Entries: 1
Thanks: 20
Thanked 28 Times in 17 Posts
Default Re: Peeling corner on exit

Well I tried it with onmouseover and a link which loads the peeling corner, but only the peeling corner and not the rest of the page....so close and yet so far...
belgirl is offline   Reply With Quote
Old 10-22-2009, 08:49 PM   #10
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: Peeling corner on exit

Hi Belinda

Sorry you are having so much trouble with this.

Can you show me the format of the link you created? Anything you can activate with an onMouseOver should also be possible to activate with an onUnload event.

Bill
mywebwork is offline   Reply With Quote
Old 10-23-2009, 10:22 AM   #11
Banned
War Room Member
 
Join Date: May 2009
Posts: 349
Blog Entries: 1
Thanks: 20
Thanked 28 Times in 17 Posts
Default Re: Peeling corner on exit

Here you go:

<a href="somedomain.php" onMouseOver="jaaspeel.putObjects()">test</a>


Quote:
Originally Posted by mywebwork View Post
Hi Belinda

Sorry you are having so much trouble with this.

Can you show me the format of the link you created? Anything you can activate with an onMouseOver should also be possible to activate with an onUnload event.

Bill
belgirl is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
corner, exit, peeling

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 03:20 PM.