Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-06-2009, 05:21 PM
|
#1
|
Member
Registered: Aug 2008
Location: Yemen
Distribution: Fedora, CentOS, RedHat , OpenFiler, ESXI
Posts: 225
Rep:
|
Perl Question ?
Hi to all . i know this is general Perl question.
but i would like to ask the experts in this.
i have a website that is running under Apache + perl .
I have added an MP3 song that would run in the background for anyone who would visit my web.
Can I keep the song playing in the background as long as that user is viewing my webpages ? Even if he go from one page to another ,
So as long as the user is browsing my website pages the song keeps playing without stopping and playing again.
Thank you .
Regards,
MaaS
|
|
|
04-06-2009, 05:31 PM
|
#2
|
Member
Registered: Nov 2006
Distribution: FreeBSD, OpenBSD
Posts: 30
Rep: 
|
It's probably possible, but that doesn't make it a good idea. Will your users really want background music following them from page to page? I think web pages with music are annoying.
That said, you can use frames and give one small static one the background sound and open your content in a large frame. With judicious use of CSS, it will be almost unnoticeable.
I still think you should reconsider adding a persistent background sound, though.
|
|
|
04-06-2009, 06:00 PM
|
#3
|
Member
Registered: Aug 2008
Location: Yemen
Distribution: Fedora, CentOS, RedHat , OpenFiler, ESXI
Posts: 225
Original Poster
Rep:
|
Quote:
Originally Posted by grunt547
It's probably possible, but that doesn't make it a good idea. Will your users really want background music following them from page to page? I think web pages with music are annoying.
That said, you can use frames and give one small static one the background sound and open your content in a large frame. With judicious use of CSS, it will be almost unnoticeable.
I still think you should reconsider adding a persistent background sound, though.
|
Thank for the reply ? but what do u mean by frames ?
is it in CSS ? or Perl ?
thank you again 
|
|
|
04-06-2009, 09:05 PM
|
#4
|
Member
Registered: Nov 2006
Distribution: FreeBSD, OpenBSD
Posts: 30
Rep: 
|
Google for a tutorial on HTML frames, that's one way of doing what you want. Here's one: http://www.htmlcodetutorial.com/frames/frames.html. You only need Perl for serving up the frameset. You can use CSS to make the frames unobtrusive.
|
|
|
04-06-2009, 10:17 PM
|
#5
|
Member
Registered: Jun 2008
Posts: 122
Rep:
|
i second that. use frames with css stylesheets and you should be able to create constant background music while navigating through your entire site.
as grunt547 said, google HTML frames and find out more about it. you could even make it so the music continues to play after they leave your site, provided they used a link on your page to access external sources
|
|
|
All times are GMT -5. The time now is 08:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|