Latest news from Messenger Stuff:
 
Time: 01-08-2009, 01:22 PM Hi, Guest! (LoginRegister)
January Poll: Have you shifted away from instant messaging to social networking in recent years? tell us here.
Notice: Guests can now post in the help and support forums. Read more ...


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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).

Find all posts by this user
Quote this message in a reply
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;">
<div style="background:url(/images/toasttop.png);height:23px;text-align:right;"><a href="javascript://" onclick="toast_confirm()" onmouseover="document.image6.src='/images/closeover.png'" onmouseout="document.image6.src='/images/close.png'"><img src="/images/close.png" style="margin-right:7px;margin-top:6px;" name="image6" alt="" border="0" /></a></div><a href="http://forum.msgstuff.com" target="_blank"><img src="/images/toastbottom.png" border="0" alt="" /></a>
</div>

I'm sure you can figure how this works :).
Visit this user's website Find all posts by this user
Quote this message in a reply
01-19-2008, 02:46 PM
Post: #3
RE: msgtuff toaster?
Oh! Much more than I was expecting :d But yeah, I'll look at this and use it as a reference for my own. Thanks very much!

Find all posts by this user
Quote this message in a reply
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?

Find all posts by this user
Quote this message in a reply
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?

[Image: sig.png]

[Image: hmaster.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
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 :p.
Visit this user's website Find all posts by this user
Quote this message in a reply
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!

Find all posts by this user
Quote this message in a reply
01-21-2008, 09:12 PM
Post: #8
RE: msgtuff toaster?
methos-studios -> forbidden. you making a new site :^) ? :d

[Image: sig.png]

[Image: hmaster.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: