HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML 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 3rd, 2000, 04:43 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 3rd, 2000, 12:08 PM
JSchoof JSchoof is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 82 JSchoof User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 46 sec
Reputation Power: 9

Er, why dont you make it go to an HTML page, and then just cram yer sound and JPG in there?

Josh

Reply With Quote
  #3  
Old November 6th, 2000, 04:08 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
That would be a solution, but makes things (and navigation) a little bit more complicated for me. I was just wondering if it can be done... What about an OnClick script?

Thanks anyways :-)

Gabi

Reply With Quote
  #4  
Old November 6th, 2000, 11:32 AM
iseverythingman1 iseverythingman1 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 3 iseverythingman1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Gabi:
That would be a solution, but makes things (and navigation) a little bit more complicated for me. I was just wondering if it can be done... What about an OnClick script?

Thanks anyways :-)

Gabi
[/quote]


var muteFlag = 1;

function soundPlayer(sound_to_play,mute){
if (muteFlag == 1){
if (sound_to_play == 0 && mute == 1){
document.plugins[0].play();
}
if (sound_to_play == 1 && mute == 1){
document.plugins[1].play();
}
if (sound_to_play == 2 && mute == 1){
document.plugins[2].play();
}
if (sound_to_play == 3 && mute == 1){
document.plugins[3].play();
}
if (sound_to_play == 4 && mute == 1){
document.plugins[4].play();
}
if (sound_to_play == 5 && mute == 1){
document.plugins[5].play();
}
if (sound_to_play == 6 && mute == 1){
document.plugins[6].play();
}
}
}

//embed all this into your HTML. the first wav file gets called like this
onClick="soundPlayer(0,1)"
the second this
onClick="soundPlayer(1,1)"
and so on-->

<embed src="your.wav" loop=no hidden=true autostart=false>
<embed src="your.wav1" loop=no hidden=true autostart=false>
<embed src="your.wav2" loop=no hidden=true autostart=false>
<embed src="your.wav3" loop=no hidden=true autostart=false>
<embed src="your.wav4" loop=no hidden=true autostart=false>
<embed src="your5.wav" loop=no hidden=true autostart=false>
<embed src="your6.wav" loop=no hidden=true autostart=false>

Any Questions ??

Reply With Quote
  #5  
Old November 7th, 2000, 03:36 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 give it a try. If I am having trouble, I will get back at you :-)

~Gabi

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Linking a thumbnail both to an image and sound


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT