Shoutbox

Scripting - contribute to patchou.com - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: General Chit Chat (/forumdisplay.php?fid=14)
+----- Thread: Scripting - contribute to patchou.com (/showthread.php?tid=4306)

Scripting - contribute to patchou.com by Patchou on 02-06-2003 at 04:44 PM

Hello!

my site will be back online soon and I would like somone who knows about JScript of VB Script to make a little script for me.... the site will have popup banners (I have to pay the server and as the real new site won't be ready soon, I can't signup with another more serious advertiser) and I want the banner to be displayed a maximum of once every one for a unique user.... that will prevent the banenr to reappear everytime you go to another page of the site which is very very annoying. I guess you just need to write a cookie, check the value and execute the little HTML line if the delay is ok but as I do not know nothing about scripting, I thought you could help me....


Just post your sollution on this thread! Thanks!
Patchou


RE: Scripting - contribute to patchou.com by jw on 02-06-2003 at 05:27 PM

Do I have access to PHP?


RE: Scripting - contribute to patchou.com by Patchou on 02-07-2003 at 03:29 AM

yep but my advertiser won't allow it... I need a simple VBScript of JScript to put in my HTML page... anyone? please!!! my server is not cheao ($110 / month if you want to know) and I do not want to spam all my visitors with tons of ads!

Thanks
Patchou


RE: Scripting - contribute to patchou.com by Muss on 02-07-2003 at 03:36 AM

Is that $110 canadian :shocked:


You shoudl email ginge, he would be able to do it, but he hardly ever reads this forum so probably doesn't know you are wanting someone to do it


RE: Scripting - contribute to patchou.com by WDZ on 02-07-2003 at 04:47 AM

Hmm... I tried making a little JavaScript, but I don't know if this is what you want...

http://shoutbox.menthix.net/banner.html

When you first go there, you should see the MP2 banner, then any time you refresh within the next day, it won't be there (the cookie expires in a day). Also, the cookie's path is set to "/" so it should apply to all pages on the domain.

Just put the HTML for your banner inside the document.write() with quotes escaped... it's a pretty simple script. :S


RE: Scripting - contribute to patchou.com by Menthix on 02-07-2003 at 11:30 AM

Patchou... sended you a PM, got a friend who can make the code for you... just mail the details :)


RE: Scripting - contribute to patchou.com by Digi Guy on 02-07-2003 at 11:34 AM

WDZ's idea seems good


RE: Scripting - contribute to patchou.com by Johnny_Mac on 02-07-2003 at 03:18 PM

Works good wdz. (y)


RE: Scripting - contribute to patchou.com by Patchou on 02-07-2003 at 07:31 PM

in fact, I think that's exactly what I wanted :). Thanks!!


RE: Scripting - contribute to patchou.com by musicalmidget on 02-07-2003 at 09:46 PM

Cool work WDZ!!

Worked fine for me!! ;)


RE: Scripting - contribute to patchou.com by WDZ on 02-07-2003 at 09:58 PM

Great... (Y) :P


RE: Scripting - contribute to patchou.com by Chrono on 02-07-2003 at 10:06 PM

Yep, it wrks indeed :wink:


RE: Scripting - contribute to patchou.com by Guido on 02-13-2003 at 03:11 PM

i did it in another way for the site, but i think this is much simple and better... :)

[edit] added to new site

[edit2] wdz uses sock's bandwith for the banner :lol:

[edit3] close the thread please