Jump to content
Sign in to follow this  

Have you played Atari today?

Recommended Posts

I am a new member and an avid programmer. I noticed the "Have you played Atari today?" button realized it wasn't taking full advantage of javascript. I'm not sure who host / maintains the website but I do have a suggestion for them. You could use javascript to play the Atari jingle in the current page. Heres how I'd do it:


This script will make a sound object that can be played.


var sound = new Audio("http://atariage.com/audio/atarijingle.wav");


Then in the webpage replace the href location "atariage.com/audio/atarijingle.wav" with "javascript:sound.play()". That will play the sound object created by the script above.


<a href="javascript:sound.play()" class="masttext">Have You Played Atari Today?</a>


Happy coding!


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...