| | |
Combining CSS and Javascript files into single HTML file [HELP NEEDED]
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2008
Posts: 2
Reputation:
Solved Threads: 0
Hi All
I have a google code project running at the moment to develop a simple-standards web-based slides show system (code.google.com/p/easyslides)
At the moment there are several .css and .js files as well as images in one folder and a seperate HTML file. I want to be able to provide a single-file solution (maybe through a script) for users and therefore need to somehow combine all these css, javascript and images into the HTML file.
I have looked at around but mostly have found page-optimization solutions - although some of them are really useful its not quite what I am looking for.
Would be great if someone could provide any tips or possible scripts that would help me to solve this problem.
Your help will be very much appreciated.
I have a google code project running at the moment to develop a simple-standards web-based slides show system (code.google.com/p/easyslides)
At the moment there are several .css and .js files as well as images in one folder and a seperate HTML file. I want to be able to provide a single-file solution (maybe through a script) for users and therefore need to somehow combine all these css, javascript and images into the HTML file.
I have looked at around but mostly have found page-optimization solutions - although some of them are really useful its not quite what I am looking for.
Would be great if someone could provide any tips or possible scripts that would help me to solve this problem.
Your help will be very much appreciated.
Are you wanting a "single file solution" for download, or upload?
You could just zip them up so someone can download a "single file solution".
You can easly add the CSS/Javascript into the HTML file, but there is no way to save the images inside of the html file.
You could just zip them up so someone can download a "single file solution".
You can easly add the CSS/Javascript into the HTML file, but there is no way to save the images inside of the html file.
•
•
Join Date: Nov 2008
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Are you wanting a "single file solution" for download, or upload?
You could just zip them up so someone can download a "single file solution".
You can easly add the CSS/Javascript into the HTML file, but there is no way to save the images inside of the html file.
How can I add CSS/JS into a single HTML file? I am quite new to all this
CSS goes in style tags and Javascript goes in script tags.
The tags should go in between the HTML "head" tags.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<style type="text/css"> //CSS goes here </style> <script type="text/javascript"> //Javascript goes here </script>
The tags should go in between the HTML "head" tags.
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Dynamic Table Creation
- Next Thread: Continuously Scrolling Map
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes cookies createrange() cursor date debugger decimal dependent disablefirebug dom dropdown editor element embed engine enter events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onerror onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post programming progressbar prototype redirect runtime safari scale scriptlets scroll search security session shopping size software toggle unicode variables web webservice wysiwyg \n





