We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] html code to use html file hosted elsewhere
Topic Started: Aug 11 2010, 06:34 AM (601 Views)
Arly
Member Avatar
Member
[ *  *  * ]
Board Address: Private
Board Software: ZetaBoards
Description: I would like to know what I would put to use html to make the board template use a remotely hosted html file, such as when it is on a file hoster.

Thank you.
Offline Profile Goto Top
 
VMSimon
Member Avatar
#clowns {float:left;} #jokers {float:right;} #me, #you {position:static;text-align:center;margin:auto;}
[ *  *  * ]
You'll have to include it in a javascript file instead, then host that.
To do that, copy your HTML in notepad.
Remove and linebreaks, so it is only 1 LINE.
Then, save this as a .js file.
Code:
 
document.write('YOUR HTML HERE');

Upload that .js file, then link to it like this:
Code:
 
<script src="yourfile.js"></script>
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
If you choose not to have it all on one line, simply add a backslash (\) at the end of every line, excluding the last line.

If you use a single apostrophe (') anywhere throughout the HTML, be sure to escape it with a backslash as well.

Example: It\'s an \'awesome\' day.
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
How did this work out for you?
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic