View Full Version : Please help installing a java script
lilirose808@yahoo.com
04-03-2008, 04:26 PM
Hello,
I would like to make a one page website. I got the java script for a landing page for my affiliate website. I tried pasting it in the file manager but it won't open. Then I deleted it because I am not sure where to put it.
Anyway, my site is : uloveyourbody.com
this site opens to an index page. Please help. Would really appreciate it if someone would tell me step by step where to go in my cpanel and what to do.
thank you.
Sue-Z:confused:
Early Out
04-03-2008, 04:58 PM
There's nothing magic about a web page, or about Javascript (which is just some code that gets interpreted by the user's browser, much the way regular HTML does). You create a web page in any text editor, like Notepad. Call the file index.html, and upload it to your public_html directory. Then, anyone pointing to your domain will automatically be served up that web page.
Javascript can pretty much just be copied and pasted into the page - it's just text. The only catch is that you need to tell the browser that it's Javascript, and not HTML. So, it ends up looking like this:
<script type="text/javascript">
[this is where the javascript code text goes]
</script>
felgall
04-03-2008, 05:12 PM
The best way to handle JavaScript is to put it in its own file and link in into the HTML.
<script type="text/javascript" src="NAME OF JS FILE GOES HERE"></script>
It all depends on how the JavaScript is written as to how it needs to be attached though. There should be instructions provided with any JavaScript as to how to attach it to the HTML so that it will work.
lilirose808@yahoo.com
04-04-2008, 12:41 AM
Hello Moderators,
Thank you for your help. I used the solution but still got an index page. Then
when I click on text Tot Secret fat loss, it opens to the landing page that I
want to open when my site opens.
This is my website, please check it out and tell me how to correct this.
http://www.uloveyourbody.com/
I would appreciate it very much if you would tell me where to go and what to do because I don't know where to paste the script and how to publish my site.
Sue-Z
silencox
04-04-2008, 04:15 AM
Hello Moderators,
Thank you for your help. I used the solution but still got an index page. Then
when I click on text Tot Secret fat loss, it opens to the landing page that I
want to open when my site opens.
This is my website, please check it out and tell me how to correct this.
http://www.uloveyourbody.com/
I would appreciate it very much if you would tell me where to go and what to do because I don't know where to paste the script and how to publish my site.
Sue-Z
create index page and rename Top Secret Fat Loss.txt to .js
call your js file with method what they mention
i think that will this solve your problem
regards
Early Out
04-04-2008, 06:11 AM
Just rename Top Secret Fat Loss.txt to index.html. While you're at it, you can delete the first and last lines (the HTML already includes the proper text/javascript tags, so you don't need to wrap the whole thing in additional tags).
silencox
04-04-2008, 06:38 PM
Just rename Top Secret Fat Loss.txt to index.html. While you're at it, you can delete the first and last lines (the HTML already includes the proper text/javascript tags, so you don't need to wrap the whole thing in additional tags).
you are right
i just overlook again Top Secret Fat Loss.txt and i notice HTML tags
i'm faster on keyboard than i can think and look ( too many games :) )
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.