|
msgtuff toaster?
|
|
01-19-2008, 08:45 AM
Post: #1
|
|||
|
|||
|
msgtuff toaster?
Does anyone remember what code the old msgstuff toaster that used to pop up was coded in? I think it was Javascript, I've been trying to think about how to go about coding something vaguely similar (a small toast that appears and disappears after a few seconds, although not of a WLM style).
|
|||
|
01-19-2008, 10:16 AM
Post: #2
|
|||
|
|||
|
RE: msgtuff toaster?
The javascript is displayed from this code:
http://www.msgstuff.com/js/toast.js To add it to a web page insert this code: Code: <div id="msnpopup" style="display:none;width:201px;height:116px;position:fixed;bottom:-120px;right:3px;">I'm sure you can figure how this works .
|
|||
|
01-19-2008, 02:46 PM
Post: #3
|
|||
|
|||
|
RE: msgtuff toaster?
Oh! Much more than I was expecting
But yeah, I'll look at this and use it as a reference for my own. Thanks very much!
|
|||
|
01-19-2008, 11:57 PM
Post: #4
|
|||
|
|||
|
RE: msgtuff toaster?
Eurgh, sorry about the double post but, I copied the code into a js file, added the html to a webpage and added appropriate images, but it's not working, and I can't for the life of me figure out what I'm forgetting... There should be nothing other than the two sets of code (js and html), plus the images for the main toast body, the title bar of the toast and the two closing images, right?
|
|||
|
01-20-2008, 06:10 PM
Post: #5
|
|||
|
|||
|
RE: msgtuff toaster?
I've not actually looked at the code but it says at the top of the js file:
Please note this script uses PHP as well as Javascript to work. maybe your missing the php? |
|||
|
01-20-2008, 09:35 PM
Post: #6
|
|||
|
|||
|
RE: msgtuff toaster?
The PHP code just checks for a cookie (so once the toast has been manually closed it won't appear again) and for the web browser a person is using. This script is not IE compatible, IE has an awful javascript engine
.
|
|||
|
01-21-2008, 04:33 PM
Post: #7
|
|||
|
|||
|
RE: msgtuff toaster?
Haha, I found the glitch. In the html code, replacing "/images/" with "images/" works. Works perfectly, thanks again!
|
|||
|
01-21-2008, 09:12 PM
Post: #8
|
|||
|
|||
|
RE: msgtuff toaster?
methos-studios -> forbidden. you making a new site
?
|
|||
|
« Next Oldest | Next Newest »
|



![[Image: sig4em.png]](http://img265.imageshack.us/img265/1016/sig4em.png)


.

But yeah, I'll look at this and use it as a reference for my own. Thanks very much!

![[Image: sig.png]](http://h-master.net/as/sig.png)
![[Image: hmaster.png]](http://h-master.net/sig/hmaster.png)
.
?