Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
kbelle is on a distinguished road
 
Posts: 1
Join Date: Oct 2008
Unhappy not loading my .js files - 10-31-2008, 12:03 AM

ok, ive uploaded all the files necessary to run the website i built which works perfectly when hosted on my own machine using xamplite with apache, however..when i try to view my page on the 000webhost server it loads etc but my shadowbox.js dosnt seem to load the html i am using is as follows:-
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd"> 
<html lang="en">
<title>app</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript" src="swfobject_source.js"></script>
<script type="text/javascript">

Shadowbox.loadSkin('classic', 'src/skin');
Shadowbox.loadLanguage('en', 'src/lang');
Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], 'src/player');
var openShadowbox = function(content, player, title){
    Shadowbox.open({
        content:    content,
        player:     player,
        title:      title
    });
};

window.onload = Shadowbox.init;
</script>

<style type="text/css">

	/* hide from ie on mac \*/
	html {
		height: 100%;
		overflow: hidden;
	}
	
	#flashcontent {
		height: 100%;
	}
	/* end hide */

	body {
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #33CC33;
	}

</style>

</head>
<body>
<div>
<a href="fs21.jpg" rel="shadowbox">My Image</a>
</div>



<div id="flashcontent">

		<strong>You need to upgrade your Flash Player</strong>
		This is replaced by the Flash content. 
		Place your alternate content here and users without the Flash plugin or with 
		Javascript turned off will see this. Content here allows you to leave out <code>noscript</code> 
		tags. Include a link to <a href="fullpage.html?detectflash=false">bypass the detection</a> if you wish.
	</div>
	
	<script type="text/javascript">
	
		// <![CDATA[
		
		var so = new SWFObject("bb.swf", "sotester", "100%", "100%", "9.0.0", "#33CC33");
		so.addVariable("flashVarText", "this is passed in via FlashVars for example only");			
		so.write("flashcontent");
		
		// ]]>
	</script>
</body>
</html>
any help would be greatly appreciated
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Junior Member
tokidoki2005 is on a distinguished road
 
Posts: 2
Join Date: Nov 2008
Default 11-26-2008, 09:42 PM

Im having the same trouble loading my jquery script.
any help would be great!
Mahalo
Reply With Quote
(#3 (permalink))
Old
Kirii's Avatar
Senior Member
Kirii is on a distinguished road
 
Posts: 558
Join Date: Sep 2008
Location: Malaysia
Send a message via MSN to Kirii
Default 11-27-2008, 12:56 AM

I'm running Discuz! forum software which contains js script too..
It works well for me..
try to check your js or any other problem.


Kirii,
Forum Moderator
www.000webhost.com

Use Search,Read Announcements and FAQ before asking a support question.

CLICK HERE to join 000websupport with different language.PM me to apply a forum for your language!

I would try to reply on every thread,if I don't reply on your threads,there are 3 main reason.
1)Sorry for my limited knowledge,I don't know how to help you.
2)I am not online right now.
3)The question is already answered by other members.
Reply With Quote
(#4 (permalink))
Old
Bad Karma[CORE]'s Avatar
Guilty as charged
Bad Karma[CORE] is on a distinguished road
 
Posts: 6,133
Join Date: May 2008
Default 11-27-2008, 07:13 AM

Quote:
Originally Posted by kbelle View Post
ok, ive uploaded all the files necessary to run the website i built which works perfectly when hosted on my own machine using xamplite with apache, however..when i try to view my page on the 000webhost server it loads etc but my shadowbox.js dosnt seem to load
Looking at your code:
are the .JS files in the same directory as the .HTML file is ?
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com