Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Looka_ #1
writing dynamic .css into head tag with javascript
Hello!
I have a problem regarding writing to head tag. Here is the situation: I have
a page with link tag that points to .css which has screen media. Now, I put a
button print to the same page which opens the same page in a new window and
appends certain querystring to the URL eg. print=yes. In all of the pages there
is a javascript script that *should* write another link tag (based on
querysting) pointing to .css with media print so the user could see print
preview. Now I still learning javascript and I'm appending the code. Any help
appreciated. Thanks.
<script language="JavaScript" type="text/JavaScript">
var title;
var query;
title = document.URL;
query = title.indexOf('?');
if (query != -1) {
if (title.substr(query) == 'print=yes') {
document.write('<LINK HREF="/css/print.css" REL="stylesheet" TYPE="text/css"
MEDIA="print">');
}
}
</script>
Looka_ Guest
-
Add JavaScript Code to head
We use a customized button for submitting forms or links at work. The code combines DHTML elements for the look and functionality of the button. ... -
Dynamic Function writing.
Sorry for the double post but was not sure which area would be best. ... -
Writing javascript code in every page of my site using aspx
Good Morning, I would want to use aspx to write this javascript code for me in every page of my site www.etantonio.it how can I do this ??? ... -
Writing a dynamic loaded PHP module in C++
Hi, Could someone help me find a tutorial on how to write a dynamic loaded PHP module in C++ ? I could not find one on the php.net web... -
Injecting code into the <head></head> section
Hi All, I have a web user control that, among other things, provides Print this page, and Email this page functionality I have this script that...



Reply With Quote

