Cufon.now();
Cufon.replace('h1', { fontFamily: 'font-famyly-с-вашего скрипта' });
Cufon.replace('h2', { fontFamily: 'font-famyly-с-вашего скрипта' })
$('.navMenuItem a').classList.add('.classUnactive');$('.navMenuItem a').addClass('classUnactive');
window.onload = init;
function handleButtonClick() {
alert("Button was clicked!");
}
function init() {
var button = document.getElementById("addButton");
button.onclick = handleButtonClick;
}
document.getElementById('idivNavigation').innerHTML ='<ul class="navMenu">' +
'<li class="navMenuItem"><a href="#Home" id ="idHome" onclick="changeButtonsBackground("idHome")">HOME</a></li>' +
'<li class="navMenuItem"><a href="#About" id ="idAbout" onclick="changeButtonsBackground("idAbout")">ABOUT</a></li>' +
'<li class="navMenuItem"><a href="#Work" id ="idWork" onclick="changeButtonsBackground("idWork")">WORK</a></li>' +
'<li class="navMenuItem"><a href="#Blog" id ="idBlog" onclick="changeButtonsBackground("idBlog")">BLOG</a></li>' +
'<li class="navMenuItem"><a href="#Contact" id ="idContact" onclick="changeButtonsBackground("idContact")">CONTACT</a></li>' +
'</ul>';onclick="changeButtonsBackground("idHome")", кавычки, нельзя делать. Там надо экранировать одинарную кавычку..onclick="changeButtonsBackground(\'idHome\')"
<input class="some-class" name="some-name" value=""></input>
<input class="some-class" name="some-name" value=""></input>
<input class="some-class" name="some-name" value=""></input> . Id по определению не может быть не уникальным. Он должен быть только один на странице. А дальше var blocks = getElementsByClassName('some-class');
blocks[0].value ..
<?php
if(!function_exists('mime_content_type')) {
function mime_content_type($filename) {
$mime_types = array(
'txt' => 'text/plain',
'htm' => 'text/html',
'html' => 'text/html',
'php' => 'text/html',
'css' => 'text/css',
'js' => 'application/javascript',
'json' => 'application/json',
'xml' => 'application/xml',
'swf' => 'application/x-shockwave-flash',
'flv' => 'video/x-flv',
// images
'png' => 'image/png',
'jpe' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'jpg' => 'image/jpeg',
'gif' => 'image/gif',
'bmp' => 'image/bmp',
'ico' => 'image/vnd.microsoft.icon',
'tiff' => 'image/tiff',
'tif' => 'image/tiff',
'svg' => 'image/svg+xml',
'svgz' => 'image/svg+xml',
// archives
'zip' => 'application/zip',
'rar' => 'application/x-rar-compressed',
'exe' => 'application/x-msdownload',
'msi' => 'application/x-msdownload',
'cab' => 'application/vnd.ms-cab-compressed',
// audio/video
'mp3' => 'audio/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
// adobe
'pdf' => 'application/pdf',
'psd' => 'image/vnd.adobe.photoshop',
'ai' => 'application/postscript',
'eps' => 'application/postscript',
'ps' => 'application/postscript',
// ms office
'doc' => 'application/msword',
'rtf' => 'application/rtf',
'xls' => 'application/vnd.ms-excel',
'ppt' => 'application/vnd.ms-powerpoint',
// open office
'odt' => 'application/vnd.oasis.opendocument.text',
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
);
$ext = strtolower(array_pop(explode('.',$filename)));
if (array_key_exists($ext, $mime_types)) {
return $mime_types[$ext];
}
elseif (function_exists('finfo_open')) {
$finfo = finfo_open(FILEINFO_MIME);
$mimetype = finfo_file($finfo, $filename);
finfo_close($finfo);
return $mimetype;
}
else {
return 'application/octet-stream';
}
}
}
?>
.messages-div-blurred {
-webkit-filter: blur(5px);
filter: url(#blur-effect);
opacity: .45;
z-index: 1;
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin-top: 30px;
}