|
Yarp
Join Date: May 2004
Location: Road Warrior
|
I'm not asking anyone to do my work for me. But I'm pretty much completely over my head with this javascript stuff. Well, most code is completely over my head, it's something I've never done before, and am totally unfamiliar with. That said, I have learned a handful of HTML and some basic CSS, now I want to learn some Javascript to accomplish a specific task on my webpage.
Essentially, I want to use <embed src=".mp3"> for songs on my page. But, I don't want those songs to automatically load whenever anyone views the page, since that's kind of obnoxious, rude and bandwidth wasting. So, ideally I want that <embed src=".mp3"> to only appear and start loading after someone clicks on a link. For instance. Clicking on this Link And instead of a new window popping up, or having that file load in the current window. I want a little QT/WMP timecode thing to pop up, load the song and play. I don't want this to be a pop-up window, I want it to happen on the page. I hope that makes sense to any of you web gurus. I asked a couple friends, they told me I could do that with javascript. So I've started to look at how javascript works via www.w3schools.com But it is quite a sea of information, particularly for someone who has virtually no experience with this malarky at all. So, if someone here could point me in the right direction so that I can study what it is I need to study to accomplish this objective. That would be great. Again, I'm not asking anyone to do my work for me, I will take the time to learn what I need to learn, and through trial and error, and hair pulling out, I'm sure I'll figure it out eventually. It's just, I'm so lost at this stuff and could use a push in the right direction. Of course, if someone WANTS to do my work for me, I wouldn't be opposed to that, but then I won't really learn anything, and I'll end up bothering the forums again and again and again. ![]() That is all, any input? Last edited by Wrao : 2005-07-17 at 00:12. |
|
|
quote |
|
25 chars of wasted space.
|
You should just make a small iframe, it would be a lot easier.
|
|
|
quote |
|
Yarp
Join Date: May 2004
Location: Road Warrior
|
Quote:
HOW ABOUT IFRAME MY FIST INTO YOUR JAW! *shakes aforementioned fist* I'll look into it ![]() |
|
|
|
quote |
|
Veteran Member
Join Date: Jun 2004
Location: Portlandia
|
I believe I've got code on my site that does what you're asking. Actually, I've got code that autoloads an .mp3 clip and then a link below which sends you on to the full clip. I'll PM you my site addy just in case you don't have it bookmarked already.
"What a computer is to me is it's the most remarkable tool that we've ever come up with, and it's the equivalent of a bicycle for our minds." - Steve Jobs |
|
|
quote |
|
25 chars of wasted space.
|
sunrain, why not share your site with everyone? I don't think it's spamming in this situation, and I'm always interested in seeing someone's site.
|
|
|
quote |
|
25 chars of wasted space.
|
I think what he was looking for was something like this. Not quite sure why you didn't just ask me over IM
![]() Of course I used some of sunrain's sweet music...hope that's ok. Also my way leaves a neat effect if you click on the 'thanks' a couple more times while his music is playing. ...I'm sure he never meant for his music to be played repeatedly and just offset by a couple seconds. Last edited by ast3r3x : 2005-07-17 at 09:00. |
|
|
quote |
|
Veteran Member
Join Date: Jun 2004
Location: Portlandia
|
My lawyers will be with you shortly.
![]() That's pretty cool, except it might be nice to have a mouseover event or two. |
|
|
quote |
|
25 chars of wasted space.
|
Quote:
|
|
|
|
quote |
| Posting Rules | Navigation |
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Safari: Controlling movies with javascript | ast3r3x | Genius Bar | 0 | 2005-04-16 20:14 |
| Javascript Insert At Cursor | ast3r3x | Genius Bar | 0 | 2005-02-12 19:13 |