Xanga.com Continuous Background Music
What is this?
This is a script that enables Xanga users to put a background music to his/her Xanga. The music would not be interrupted (stopped) even if the visitor click into another page (e.g. comments page).
Installation
- Enter some basic information below, then click "Generate"
- Put the script into the top of custom header of your Xanga site's Look and Feel
- Save changes and enjoy!
- Note 1: You will need to open your editor in New Window after using this script (e.g. "New Weblog Entry", or "edit it")
- Note 2: You need to remove your existing background music set with Xanga's built in function before using this script
Now, put this script into the TOP of your custom header in your Xanga's Look and Feel.
We have prepared a demo site for you to see how your Xanga will look like after using this script, at http://www.xanga.com/demo_cbgm.
This script has been tested on MSIE6 and Firefox1.5. It can also work buggily in Opera 8.5.
Special thanks to cychoi, who requested this script. Enjoy =)
Brought to you by
Eddy-Das
http://www.xanga.com/ewcy
03Jun2006 19:30
Change log:
07JUL2006:
The frame is totally removed. The music would stop automatically - by inserting
a _top target attribute in each foreign link.
07JUL2006:
Rainy day. Just studied cychoi's mod to this script. He placed the function
in a separate JS in head section, then call it from the body. So that the
whole function could finish without being overwritten by body.innerHTML.
I adopted this idea, by dynamic creation of script tag in the head, then call
function from it. The amazing part is that MSIE would have "operation aborted"
error when the DOM is modified during page render/load. I read into cychoi's
script and found the magic line: document.execCommand('stop'), which deals
nicely with MSIE.
Made the 'frame' a floating message at the bottom - gotta to be a little bit
higher or else it would block the horizontal scrollbar.
Shortened the text in the message.
Removed custom styles - looks completely seamless with the host Xanga.
Auto configure all xtools links to open in new window - Xanga forbids their
editor from being opened in frames.
Auto-reconfigure frame sizes upon page resize, used window.resize= because I
want this script to be monolopy with other scripts - they should work in the
created frame instead.
03JUN2006:
It was a saturday, and I was boring at home again. I asked in Xangachat
"Any good ideas on what scripts to write?", and cychoi asked me to write
a music player that will play continuously over pages.
I copied quite a number of codes from Xangachat, especially those JS works
over frames and resizing and border disabling techniques.
Actually I am still finding a way to automatically stop the music when the
user has navigated to another page. But my poor JS technique and knowledge
forbid me to do so. I would appreciate any technical help from you!
Enjoy =)