Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-01-2011, 09:48 PM   PM User | #1
panzer
New to the CF scene

 
Join Date: Jan 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
panzer is an unknown quantity at this point
Macintosh issue with background music on our website

Hello,
I am trying to change the background music on our website to be continuous, right now the music restarts every time you go to a new page. The webmaster who designed the website has this coding on the header page on the includes folder, he said setting it to restart with every page change was the only way we could set it up to be compatible with seo, I have had mixed information about this. Can anyone tell me how I should change this code without affecting the seo results. THANK YOU
[code]
<script type="text/javascript">
var flashvars = {};
flashvars.width = "70";
flashvars.height = "50";
var params = {};
params.wmode = "transparent";
var attributes = {};
attributes.id = "music";
swfobject.embedSWF("background_music.swf", "music", "70", "50", "8.0.0", true, flashvars, params, attributes);
</script>
[code]

Last edited by panzer; 01-02-2011 at 02:27 PM.. Reason: editing code
panzer is offline   Reply With Quote
Old 01-02-2011, 07:58 PM   PM User | #2
panzer
New to the CF scene

 
Join Date: Jan 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
panzer is an unknown quantity at this point
could anyone help me please? thanks in advance!
panzer is offline   Reply With Quote
Old 01-03-2011, 07:20 AM   PM User | #3
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,036
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
The guy who designed your webpage is right. It is not possible to make your music play continuously as the user moves from page to page. A new page will restart the music afresh.



All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
Philip M is offline   Reply With Quote
Old 01-03-2011, 12:40 PM   PM User | #4
tpeck
Regular Coder

 
tpeck's Avatar
 
Join Date: Oct 2002
Location: Sydney, Australia
Posts: 771
Thanks: 40
Thanked 5 Times in 4 Posts
tpeck is on a distinguished road
Use a frameset. One page in the frameset is always visible and so play the sound in it.

I suggest you offer a way to turn it off (as I do at http://aapress.com.au, but I don't require the sound on every page.)

I used soundmanager2 which is crossbrowser, and cookies to save the user's on or off preference.
__________________
The difference between genius and stupidity is that genius has its limits. (Albert Einstein)
tpeck is offline   Reply With Quote
Old 01-03-2011, 06:28 PM   PM User | #5
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,455
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
you web guy simply doesn't know how to optimize ajax delivered sites. New technologies above and way beyond robots.txt, like sitemaps.org, google analytics, REL attribs to related pages, microformats, and noscript link sections, can give you a far better SEO footprint than a an unoptimized yet static site like everyone built a few years ago.

I would say that at one point whomever you talked to was mostly correct at some time, but that time was several years ago. Heck, google and bing execute javascript on their crawler bots so you don't even need to use the technique mentioned above for them to find your site "pages". You can make a more visible site using the new techniques than you could with just some meta tags and links like we all did a few years ago...

Bottom line: you can now use ajax or iframes to deliver a site with constant music and search-able content.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%

Last edited by rnd me; 01-03-2011 at 06:31 PM..
rnd me is offline   Reply With Quote
Reply

Bookmarks

Tags
background music, website music

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:14 AM.


Advertisement
Log in to turn off these ads.