inetvu ВЕРСИЯ ДЛЯ ПЕЧАТИ
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<base href="http://www.inetvu.ru/test">
<title>iNetVu.ru > Проекты</title>
<meta name="description" content="Реализованные проекты Автоматизированные самонаводящиеся антенные комплексы iNetVu" />
<meta name="keywords" content="" />
<meta name="generator" content="GetSimple" />
<link rel="canonical" href="http://www.inetvu.ru/test/projects/" />
<meta name="robots" content="index, follow" />
<link rel="stylesheet" href="http://www.inetvu.ru/test/theme/inetvu.ru/style.css"/>
<!--[if gte IE 7]>
<style type="text/css">
</style>
<![endif]-->
<!--[if IE 6]>
<style>
#header span { display:block; width:200px; height: 30px; float:right; position:relative; top: 20px; }
#content {position:relative;top:0;}
#leftmenu {position:relative;top:0;width:200px;left: 200px;}
</style>
<![endif]-->
</head>
<body>
<style type="text/css">
</style>
<div id="main">
<div id="header"><span class="search"> <form id="search_form" action="/test/search" method="post">
<input type="text" onfocus="if(this.value==this.defaultValue) this.value='';" onblur="if(this.value=='') this.value=this.defaultValue;" class="text" value="Поиск..." name="keywords" />
<input type="submit" class="submit" value=">>" />
</form>
<span style="font-size:16px;position:relative;top:-1.8em;left:-400px;width:370px;display:block"><b>+7 (495) 663 89 00<br><a href="mailto:[email protected]">[email protected]</a></b></span>
</span><a href="http://www.inetvu.ru/test/" style="border:0; position:relative; top:15px; left:20px;"><img src="http://www.inetvu.ru/test/theme/inetvu.ru/logo-bold.png" class="gs_image"...
JavaScript
$('span.breadcrumb').parent('small').before('<a id="prnt" style="float:right">Версия для печати</a>');
var printt = $('div#content').html();
$('#prnt').click(function(){
$('body *').toggle();
$('body').append('<div id=print><style>body { padding:0;margin:0} body div#content a {text-decoration:none; } body div#content {font-family: Arial,Helvetica,sans-serif; width:683px; color:black;background: white}</style><div id="content">'+printt+'</div></div>');
//$('span.breadcrumb').parent('small').prepend('<span class="breadcrumb">iNetVu.ru</span>').after('<a href="'+location.href+'" style="float:right">Версия для печати</a>');
});
//
//
//$('span.breadcrumb').parent('small').prepend('<span class="breadcrumb">iNetVu.ru</span>').after('<a href="'+location.href+'" style="float:right">Версия для печати</a>');
//first().parent('small').before('<span class="breadcrumb">iNetVu.ru</span>');