Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Replace media player in web script - How to open a .js file
Old 08-02-2011, 09:47 AM Replace media player in web script - How to open a .js file
Extreme Talker

Posts: 218
Trades: 0
I'd like to replace the player in a small web page video player script.
The script has a swfobject.js file and it's my understanding that it may be just a matter of uploading the new player swf to my webspace and then editing the js to point to the new player. I don't know how to open a .js file, and this may be too small of a request for a freelancer. Can someone help me with this?
Any guidance will be appreciated.
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-02-2011, 01:02 PM Re: Replace media player in web script - How to open a .js file
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
A .js file is simly a Javascript file. If you're used to seeing this:

Code:
<script type="text/javascript">
alert("hello!");
</script>
The same thing could be written inside a .js file:
Code:
alert("hello!");
To use the .js file inside your HTML page, use this in the HEAD section:
Code:
<script type="text/javascript" src="yourscript.js" ></script>
As for replacing the player, you can just replace the .js file, if that's all the player needs. If it's just a customization issue, just look through the code and change values around to get what you'd like. You could probably post it here and have someone to look at it for free.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 08-03-2011, 06:39 PM Re: Replace media player in web script - How to open a .js file
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Just to add in on Scott's explanation. A .js file is just a text file. You can open it in any text editor. Chances are, however, that the code within the file has been minified, meaning that unnecessary spaces, line breaks and comments has been removed and long variable and function names has been renamed to shorter ones (like a, b, c etc.). It's still a plain text file, just very hard to read and understand.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to Replace media player in web script - How to open a .js file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.25091 seconds with 12 queries