Create Demo Page In Blogger With Download And Remove Frame Buttons

Hỗ trợ:
Thể loại:
Sử dụng:


Trying to make a Demo Page in Blogger with buttons like Download and Remove Frame? Then this tut's for you. You can now create a Demo Page in Blogger, for previewing themes, scripts, etc. And also as it has a Download Button, you can also link a file to download within. So lets get started.


>The first step is easy. You just have to create a new blank page named Demo.

Yellow - Demo is recommended but you can set your own.

>The second step is Go To Template > Edit HTML. Then Find  " ]]></b:skin> ", and paste the code below above it.




/* Demo Page by NQnia */

#view {

padding: 0;

margin: 0;

border: 0;

position: fixed;

top: 50px;

left: 0;

right: 0;

bottom: 0;

width: 100%;

height: 93%;

background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRzbqaqFmsBgKvqpM3AfvzSDUgDBTHBcL1ZsO56RZ1N8rPjL0URiBZORTwX5TrlRIuOlfPasMxiP1-NHTW66A-12CP4BcRyApz-QU8mdfTeuevG-tiKAbpv7CLhuMKvoDk9_YoOKJDfRQ/s1600/hourglass.gif)no-repeat center center;

transition:all .4s ease-out;

}

#tab-demo {

width:100%;

height:50px;

top:0;

left: 0;

background:#222;

color:white;

font:normal 13px Arial, sans-serif;

z-index:99999;

position:fixed;

}

.closebutton {

background:#BCFF8B url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxCYYh6G0eewJVCsPQtBCBfbOEldd99rlPTjzNjUxrArzh8h0GZ0CWEJkWdP-GsQsJhhhpoOrRJnK5aj-x1jVDSZQ8LAJJhvvVq4pILrP6JWnq9QNkqJ3RzSYo8K3Ckfib_2H5kMSvEUk/s1600/close.png)no-repeat 15px 50%;

text-align:center;

height:50px;

padding:0px 20px 0px 50px;

position:fixed;

top:0;

right:0;

line-height:50px;

cursor:crosshair;

color:white;

}

a.closebutton {color:white;text-decoration:none;}

.closebutton:hover {background:#FF0000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxCYYh6G0eewJVCsPQtBCBfbOEldd99rlPTjzNjUxrArzh8h0GZ0CWEJkWdP-GsQsJhhhpoOrRJnK5aj-x1jVDSZQ8LAJJhvvVq4pILrP6JWnq9QNkqJ3RzSYo8K3Ckfib_2H5kMSvEUk/s1600/close.png)no-repeat 15px 50%}

.dlbutton:hover {background:#579c26 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0M4qq8JuKbB3iQnCeGpLAak-_uvihL0R6IAWR3dfMUgmIY0byUm0RAtqKMMRqOn_861DMA4fqxERtW121uRZOorwy_0SxVAis3u-xoEHfYoHhaHGZZgG-LXQkdKQYukwmeYpZYQaHk5A/s1600/download.png)no-repeat 15px 50%}

.dlbutton, a.dlbutton {

background:#66af33 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0M4qq8JuKbB3iQnCeGpLAak-_uvihL0R6IAWR3dfMUgmIY0byUm0RAtqKMMRqOn_861DMA4fqxERtW121uRZOorwy_0SxVAis3u-xoEHfYoHhaHGZZgG-LXQkdKQYukwmeYpZYQaHk5A/s1600/download.png)no-repeat 15px 50%;

text-align:center;

height:50px;

padding:0px 20px 0px 55px;

position:fixed;

top:0;

right:158px;

line-height:50px;

cursor:crosshair;

color:white;

text-decoration:none;

}

.demologo, a.demologo {

background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt3dh1FVM3puoViqTN7jSB4l7g3jGBAv3u29pzhxG0JKMbZ2m871aGUBo-56SHbfzxbTYLTLENZS2sDbeIGd64Yg5vicHNjzCFqqHIUY9Gr5kTlguJrhiaBgtCfLMGiIjeCiNvjAiCE8o/s1600/NQNia+%25282%2529.png)no-repeat left center;

padding-left:55px;

font-size:17px;

font-weight:normal;

font-family:Oswald, Arial, Sans-serif;

text-transform:uppercase;

line-height:50px;

left:15px;

position:fixed;

color:white;

cursor:crosshair;

text-decoration:none;

}

/* Demo Page by NQNia */

Red - Change the mouse pointer.[Default is pointer(e.g cursor:pointer;)]
Blue - Enter the URL of your website's logo.

>Now, for the third step, you have to find "<body>", and after it, paste the code below.


<b:if cond='data:blog.url != &quot;http://thanhtuan.host/p/demo.html&quot;'>


Green - Enter your demo page's url that you made in the first step.

After this, find " </body> ", and paste the code below above it.


</b:if>

<b:if cond='data:blog.url == &quot;http://thanhtuan.host/p/demo.html&quot;'>
<script type='text/javascript'>
//<![CDATA[
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
return (false);
}
window.onload = function() {
var url = getQueryVariable("url");
var download = getQueryVariable("download")
document.getElementById('view').src = url;
document.getElementById('dl').href = download;
};
//]]>
</script>

<div id='tab-demo'>
<a class='demologo' href='http://thanhtuan.host'>NQnia Demo</a>
<a class='dlbutton' href='' id='dl'>Download</a>
<a class='closebutton' href='javascript:void(0)' onclick='document.getElementById(&apos;tab-demo&apos;).style.display=&apos;none&apos;;document.getElementById(&apos;view&apos;).style.top=&apos;0&apos;;document.getElementById(&apos;view&apos;).style.height=&apos;100%&apos;'>Remove Frame</a>
</div>
<iframe id='view'/>
<style>
body {
background:white;
}
</style>
</b:if>

Red - Replace with your own choice.
Orange - Enter your blog URL.
Aqua - Replace with your Demo Page URL

Now, you are done! Save your template. After that you can any time view your demo page by the URL below:

http://thanhtuan.host/p/demo.html?url=http://fl.com;download=http://dl.com
Red - Replace with your Demo page URL
Yellow - URL of the website or script to preview
Green - URL of the Download link.

Now you are all done. Any problem or query, then comment below!


NOTE!  Never forget to write "http://" OR "https://" in your links, or youll get a 404 error.


Live Demo ⇨ Demo





Facebook Google twitter
Tips: Nếu cài file APK bị lỗi bạn có thể xem Hướng dẫn cài game Android APK ngoài google play
Create Demo Page In Blogger With Download And Remove Frame Buttons Create Demo Page In Blogger With Download And Remove Frame Buttons
910 1

Bài viết Create Demo Page In Blogger With Download And Remove Frame Buttons