User Name
Password
AppleNova Forums » Programmer's Nook »

Some javascript "point me in the right direction"


Register Members List Calendar Search FAQ Posting Guidelines
Some javascript "point me in the right direction"
Thread Tools
Wrao
Yarp
 
Join Date: May 2004
Location: Road Warrior
 
Old 2005-07-16, 20:39

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.
Wrao is offline   quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
Old 2005-07-16, 22:15

You should just make a small iframe, it would be a lot easier.
ast3r3x is offline   quote
Wrao
Yarp
 
Join Date: May 2004
Location: Road Warrior
 
Old 2005-07-17, 00:12

Quote:
Originally Posted by ast3r3x
You should just make a small iframe, it would be a lot easier.


HOW ABOUT IFRAME MY FIST INTO YOUR JAW!


*shakes aforementioned fist*


I'll look into it
Wrao is offline   quote
sunrain
Veteran Member
 
Join Date: Jun 2004
Location: Portlandia
 
Old 2005-07-17, 03:16

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
sunrain is offline   quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
Old 2005-07-17, 06:12

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.
ast3r3x is offline   quote
sunrain
Veteran Member
 
Join Date: Jun 2004
Location: Portlandia
 
Old 2005-07-17, 08:24

Done. *poof*
sunrain is offline   quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
Old 2005-07-17, 08:58

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.
ast3r3x is offline   quote
sunrain
Veteran Member
 
Join Date: Jun 2004
Location: Portlandia
 
Old 2005-07-17, 09:03

My lawyers will be with you shortly.

That's pretty cool, except it might be nice to have a mouseover event or two.
sunrain is offline   quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
Old 2005-07-17, 09:07

Quote:
Originally Posted by sunrain
My lawyers will be with you shortly.

That's pretty cool, except it might be nice to have a mouseover event or two.
Agreed, my example was slightly crude.
ast3r3x is offline   quote
Posting Rules Navigation
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

Reply

Forum Jump
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


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 12:48.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2012, AppleNova
AppleNova Slim