Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Monday, March 22, 2010

Hide iframe border on IE

<html>
<head>
<body bgcolor="#000000">
</head>
<iframe src="./index.html" frameborder="0" border="0" cellspacing="0" width="100%" marginwidth="0" marginheight="0" height="75%">
</iframe>
<br><br>
<iframe src="./ads.html" noresize="noresize" frameborder="0" border="0" cellspacing="0" scrolling="no" width="100%" marginwidth="0" marginheight="0" height="25%">
</iframe>
</body>
</html>

Wednesday, March 17, 2010

CSS style like print preview / paper view

Need to preview like print preview? use this css style example.


<html>
<head>
<title>Contoh Kandungan</title>

<style type="text/css">
body {
background-color: #9099ae;
}
.textclass {

background-color: #fff;
margin: 0 auto;
border:1px solid #000;
border-right-width: 3px;
border-bottom-width:3px;
padding: 5em 6em;
font-family: Arial;
}

</style>

</head>
<body>
<p class="textclass">
Welcome to thegreatestpost.blogspot.com
<br>
Insert your content here.
</p>
</body>
</html>


sample:





Monday, February 8, 2010

Print only selected div content / css print selected only

If you need to print only selected content in div and not include button print, this is simple solution help you to solve it.

<html>
<head>
<style type="text/css" media="print">
@media print
{
#non-printable { display: none; }
#printable {
display: block;
width: 100%;
height: 100%;
}
}
</style>
</head>
<body>
<div id="printable" >
Your content to print
</div>
<input type="button" id="non-printable" class=normaltext onclick="JavaScript:window.print();" value="print" />
</body>
</html>


Tuesday, February 10, 2009

What is AJAX (Programming)

Ajax, or AJAX techniques used to create interactive (Asynchronous JavaScript and XML), is a group of interrelated web developmentweb applications or rich Internet applications. With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page. The use of Ajax has led to an increase in interactive animation on web pages. Data is retrieved using the XMLHttpRequest object or through the use of Remote Scripting in browsers that do not support it. Despite the name, the use of JavaScript and XML is not actually required, nor do the requests need to be asynchronous. The acronym AJAX has thus changed to the term Ajax, which does not represent these specific technologies.


Source : http://en.wikipedia.org

Note (site to get sourcecode):

http://www.java2s.com/
http://www.javascriptkit.com/