Searching...
Sabtu, 01 September 2012
07.36 0

Put another Website Into Blog

This tutorial is very useful for those of you who had the idea to include other websites into your blog without leaving the blog anda.seperti picture below
put the other website into a blog can be done only by using javascript

blog demo example you can click here

Without wasting time, let us see how to put other websites in our blog

1) Like usual, log in to your account, the dashboard> Design> Page Elements> Add a Gadget

2)Choose HTML/javascript.
3) Copy the code below
<! - CHANGE TO YOUR OWN LINKS below ->
<a href="javascript:jumpto('http://mediasiber.blogspot.com')"> mediasiber </ a> |
<a href="javascript:jumpto('http://mediasiber.blogspot.com/search/label/tips')"> tutorial blog </ a> |

<script language="JavaScript">
<! -


/ / Specify the display mode (0 or 1)
/ / 0 Causes document to be displayed in an inline frame, while 1 in a new browser window
displaymode var = 0
/ / if displaymode = 0, configure inline frame attributes (ie: Dimensions, Intial document shown
iframecode var = '<iframe id="external" style="width:99%;height:400px" src="http://mediasiber.blogspot.com"> </ iframe>'

/ / / / / NO NEED TO EDIT below HERE / / / / / / / / / / / /

if (displaymode == 0)
document.write (iframecode)

Jumpto function (inputurl) {
if (document.getElementById && displaymode == 0)
document.getElementById ("external"). src = inputurl
else if (document.all && displaymode == 0)
document.all.external.src = inputurl
else {
if (! window.win2 | | win2.closed)
win2 = window.open (inputurl)
/ / else if win2 already Exists
else {
win2.location = inputurl
win2.focus ()
}
}
}
/ / ->
</ script>


notes:
Blue color: replace with the name you want
orange color: replace with url


0 komentar:

Posting Komentar