css - Remove header & footer from published Google Docs Spreadsheet -


I got a Javascript solution to delete the gridlines on Google Docs spreadsheets (using "Download as HTML" and more Then javascript in the web address bar): Great works! Jquery: javascript: var v = "none", e = "defaultView", o = "border", m = "color", w = function (a, b) {if (document [ E]] {if (document [e] .getcomputedStyle (a, null) [o + b + m] == "rgb (204, 204, 204)") a.style [o + b] = v} and if (A.currentStyle [o + b + m] == "# ccc") a.style [o + b] = "none"}, q = function (a) {a = window.document w (c, "left" "); W (c, "right"); W (c, "right"); W (c, "right"); W (c, "right"); W (c, "right"); W (c, "right"); W (c, "right"); W (c; c, "below"); W (c, "top")}}; Q ("td"); Q ("table");

Is it possible to make a comparative JavaScript to remove the header and footer of the "published" docs for the web ?! One of the published spreadsheets -> header: file name is + sheet; -> Footer: "Edit this page (if you have permission) - Published by Google Docs - Report Abuse - Automatically updates every 5 minutes" -> Examples: (To delete the gridlines in the URL Already "& amp; gridlines = false")

Why the previous solution is not enough ?! I want some people to publish spreadsheets (on the web) (see) spreadsheets themselves because they can not use their JavaScript "download as HTML" +, but Want to see a published site and create a clean print without Google header and footer?

Great if anyone can help!

Regards,

Thankfully, the layout on this page is super simple.

  & lt; Div id = "header" & gt; ... & lt; / Div & gt; & Lt; Div id = "content" & gt; ... & lt; / Div & gt; & Lt; Div id = "footer" & gt; ... & lt; / Div & gt;  

You can type a function like this to hide the header and footer.

  var f = function (id) {document.getElementById (id) Style.display = "none"; }; F ("title"); F ("footer");  

or copy paste version:

  javascript: var f = function (id) {document.getElementById (id) .style.display = "none" ;}; F ("title"); F ("footer");  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -