View Full Version : Music front page only...How do I?
AllenCW
Dec-23-2008, 01:56 PM
The music is working fine, but I only want the music to play on the front page.......not in other galleries, for example (5789991 gallery). How can get it to play only on the front page OR restrict certain galleries???
Below is what I currently have.
(CSS)
#my_music {display: none;}
.homepage #my_music {display: block;}
.gallery_5789991 #my_music {dispaly: block;}
(Custom Footer)
<div id ="my_music"> <embed src="http://xxxxxxxxx.mp3" width="0" height="0" autostart="true" loop="true"> </div>
Thank you,
Allen
jfriend
Dec-24-2008, 11:26 PM
The music is working fine, but I only want the music to play on the front page.......not in other galleries, for example (5789991 gallery). How can get it to play only on the front page OR restrict certain galleries???
Below is what I currently have.
(CSS)
#my_music {display: none;}
.homepage #my_music {display: block;}
.gallery_5789991 #my_music {dispaly: block;}
(Custom Footer)
<div id ="my_music"> <embed src="http://xxxxxxxxx.mp3" width="0" height="0" autostart="true" loop="true"> </div>
Thank you,
Allen
I see three possible issues. To help any further, we would need a link to your web site so we can see the actual site in action.
Possible issue #1: It is not recommended that you underscores in your div IDs.
Possible issue #2: don't put a space after the id, so use <div id="myMusic"> instead of <div id = "myMusic">.
Possible issue #3: You have misspelled "display" in this line: .gallery_5789991 #my_music {dispaly: block;}.
AllenCW
Dec-25-2008, 08:00 PM
I see three possible issues. To help any further, we would need a link to your web site so we can see the actual site in action.
Possible issue #1: It is not recommended that you underscores in your div IDs.
Possible issue #2: don't put a space after the id, so use <div id="myMusic"> instead of <div id = "myMusic">.
Possible issue #3: You have misspelled "display" in this line: .gallery_5789991 #my_music {dispaly: block;}.
Hello John and thank you for your help.
The website is www.allenwaterford.com (http://www.allenwaterford.com)
My reply to your possible issue suggestions.
#1. I used the underscores as suggested by http://wiki.smugmug.net/display/SmugMug/How+To+Add+Music
#2. I removed the space after the id.
#3. The spelling of "display" is now correct on my website.
Please note to smugmug: the code is spelled "dispaly" on http://wiki.smugmug.net/display/SmugMug/How+To+Add+Music
After making the adjustments, it still plays on the 5789991 gallery.
My goal is to have it play on just the front page only. Further suggestions would be greatly appriciated.
Allen
jfriend
Dec-25-2008, 08:30 PM
Hello John and thank you for your help.
The website is www.allenwaterford.com (http://www.allenwaterford.com)
My reply to your possible issue suggestions.
#1. I used the underscores as suggested by http://wiki.smugmug.net/display/SmugMug/How+To+Add+Music
#2. I removed the space after the id.
#3. The spelling of "display" is now correct on my website.
Please note to smugmug: the code is spelled "dispaly" on http://wiki.smugmug.net/display/SmugMug/How+To+Add+Music
After making the adjustments, it still plays on the 5789991 gallery.
My goal is to have it play on just the front page only. Further suggestions would be greatly appreciated.
Allen
The line of CSS:
.gallery_5789991 #my_music {display: block;}
is telling it to play on the 5789991 gallery. If you don't want it to play in that gallery, then remove that line.
I don't see any other galleries so I don't know if you think it is playing elsewhere. If so, please post a link to where it's playing that you don't want.
I've reported (http://www.dgrin.com/showthread.php?p=997316#post997316) the typo in the wiki page and hopefully someone will fix it.
AllenCW
Dec-25-2008, 08:55 PM
I removed the .gallery_5789991 #my_music {display: block;}
Then I cleared all temporary internet files/cookies etc.
Unfortunately, the music still plays in the 5789991 gallery.
I am more than willing to try any other suggestions you might have.
Allen
jfriend
Dec-25-2008, 08:59 PM
I removed the .gallery_5789991 #my_music {display: block;}
Then I cleared all temporary internet files/cookies etc.
Unfortunately, the music still plays in the 5789991 gallery.
I am more than willing to try any other suggestions you might have.
Allen
It's not playing for me in the 5789991 gallery at http://www.allenwaterford.com/gallery/5789991_URHPd. I tried it in Firefox 3, IE7 and Safari. What browser are you using? Do you have any other computers you could check so we can figure out if this is more likely a local issue vs. a website issue?
AllenCW
Dec-25-2008, 09:15 PM
It's not playing for me in the 5789991 gallery at http://www.allenwaterford.com/gallery/5789991_URHPd. I tried it in Firefox 3, IE7 and Safari. What browser are you using? Do you have any other computers you could check so we can figure out if this is more likely a local issue vs. a website issue?
I tried the 578991 gallery on each of the following browsers/operating systems (also cleared all temp files/cookies etc. between each browser).
Re:http://www.allenwaterford.com/gallery/5789991_URHPd
Windows XP/IE 7 (Music did play)
Windows Vista/ IE 7 (Music did play)
Windows XP/Firefox (Music did not play)
Imac/Safari (Music did not play)
Imac/Firefox (Music did not play)
Strange that the music still seems to play on IE7.
I'm trying to figure how the music would play on my IE7, but now yours?
Allen
brandofamily
Dec-25-2008, 09:38 PM
I get no music in that gallery using IE7...
brandofamily
Dec-25-2008, 09:42 PM
how do you host th3e music? I have a buddy trying to do something similar to what you did.
AllenCW
Dec-25-2008, 09:44 PM
I get no music in that gallery using IE7...
Are you using IE7 on Windows or Apple?
It's just stange that mine still plays on IE7 on both my XP and Vista.
jfriend
Dec-25-2008, 10:59 PM
I tried the 578991 gallery on each of the following browsers/operating systems (also cleared all temp files/cookies etc. between each browser).
Re:http://www.allenwaterford.com/gallery/5789991_URHPd
Windows XP/IE 7 (Music did play)
Windows Vista/ IE 7 (Music did play)
Windows XP/Firefox (Music did not play)
Imac/Safari (Music did not play)
Imac/Firefox (Music did not play)
Strange that the music still seems to play on IE7.
I'm trying to figure how the music would play on my IE7, but now yours?
Allen
What player do you have configured for MP3 files in IE? I wonder if that player is somehow different than ours and not respecting the hidden nature of the music div?
AllenCW
Dec-26-2008, 08:46 AM
What player do you have configured for MP3 files in IE? I wonder if that player is somehow different than ours and not respecting the hidden nature of the music div?
Window media player for both the Vista and XP.
The Vista-Laptop is pretty much staight out of the box......another wards, I have not changed the configuration on anything.
Allen
jfriend
Dec-26-2008, 09:22 AM
Window media player for both the Vista and XP.
The Vista-Laptop is pretty much staight out of the box......another wards, I have not changed the configuration on anything.
Allen
I have no idea why it's playing outside the homepage for you. But, there is a foolproof way to solve this problem. Just move the music HTML into your bio. The bio is only included on your homepage and since you using the bio for your slideshow, it is displayed on your homepage. That way the music HTML will only be present on your homepage and you won't need to rely on these CSS tricks to confine it to the homepage. Just put it into the bio (inside the <html> tags, but outside the <script> tags).
AllenCW
Dec-26-2008, 11:19 AM
John your AWESOME! That was foolproof!
One more question......but I'm not sure if I should start a new "Topic".
How do I get the "blog" to open up in a new window without placing a line underline underneath it???
Allen
jfriend
Dec-26-2008, 11:22 AM
John your AWESOME! That was foolproof!
One more question......but I'm not sure if I should start a new "Topic".
How do I get the "blog" to open up in a new window without placing a line underline underneath it???
Allen
Just keep going in this thread.
To open a link in a new window/tab, you add target="_blank" to the <a> tag. In your page, top open your blog in a new window/tab, change this HTML:
<a href="http://allenwaterford.blogspot.com/" style="text-decoration: none;">b l o g</a>
to this:
<a href="http://allenwaterford.blogspot.com/" target="_blank" style="text-decoration: none;">b l o g</a>
AllenCW
Dec-26-2008, 12:15 PM
John, you have made my day.....thank you!
Allen
PhotoByLeal
Apr-10-2009, 02:47 PM
I tried the 578991 gallery on each of the following browsers/operating systems (also cleared all temp files/cookies etc. between each browser).
Re:http://www.allenwaterford.com/gallery/5789991_URHPd
Windows XP/IE 7 (Music did play)
Windows Vista/ IE 7 (Music did play)
Windows XP/Firefox (Music did not play)
Imac/Safari (Music did not play)
Imac/Firefox (Music did not play)
Strange that the music still seems to play on IE7.
I'm trying to figure how the music would play on my IE7, but now yours?
Allen
So this music player does not play on MAC?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.