Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 2nd, 2000, 06:48 AM
Gabi Gabi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 6 Gabi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I want visitors of my website to click on thumbnails to get a larger image in a new browser window plus to play music. I managed the first part (which is simple). How can I link the sound additionally and make it play in the new window, which just contains the image (meaning that the URL of this image page ends with "xyz.jpg")? Any help is appreciated! ~Gabi

Reply With Quote
  #2  
Old November 2nd, 2000, 10:50 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned (not really)
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 1999
Location: Brussels, Belgium
Posts: 14,628 Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)  Folding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 2 h 39 m 6 sec
Reputation Power: 4375
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
You'll probably have to use some kind of script with this. If you open a url with just a .jpg picture, then you can't do anything else, you're not opening up any code.

if you create a script that is passed the name of the pictures, xyz.jpg, and then it also embeds the sound, xyz.mp3 (or whatever), then it will work. but you'll have to learn some scripting languages and have a host that supports them.

Look into either Perl or PHP. PHP is easy to learn, but Perl has been around a lot longer.

Maybe there is a javascript way to do it on the same page, without opening up a new window. Ask on the javascript forum...

---John Holmes...

Reply With Quote
  #3  
Old November 3rd, 2000, 04:41 AM
Gabi Gabi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 6 Gabi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks very much! I will follow your advice and post the message in the javascript forum.

Gabi

Reply With Quote
  #4  
Old November 7th, 2000, 03:16 PM
ssvr6
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Embed the sound file in the new browser window would be the easiest(if it's .htm). What format is in? .wav?

If so, thy this:
<EMBED SRC="YourSound.wav" HIDDEN=TRUE>

It will play as the window loads (or is done loading.)

If you want some thing different, try this javascript.
<SCRIPT Language="JavaScript">
function PlaySound(sFile){
window.location.href=sFile;
}
</SCRIPT>
<A HREF="ThisImage.jpg" OnClick="PlaySound(sound.wav);">Link is here</A>

Good Luck!

Steve

------------------
Web Application Developer
URL


[This message has been edited by ssvr6 (edited November 07, 2000).]

Reply With Quote
  #5  
Old November 8th, 2000, 06:48 AM
Gabi Gabi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 6 Gabi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks very much. The file will probably be either .wav or .mp3. I will try the javascript solution as soon as I will have some time ;-)

~Gabi

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Linking a thumbnail to an image plus music

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap