Posts Tagged Syntax

Accessing other frame data

In your main page you have an iframe. The iframe code is:

<input type=”text” value=”andy” name=”myname”>

To access the data from that iframe the syntax will be :

Formname.document.getElementsByName.(’contaolname’)[0].value

So the code for the main file is:

<script>
function getvalue()
{
alert(frame1.document.getElementsByName(’myname’)[0].value);
}
</script>
<iframe src=”form.php” name=”frame1″></iframe>

<input type=”button” value=”Get value” onclick=”getvalue()”>

, , , , , , ,

No Comments

Cloud Tag at wordpress

The syntax for wordpress cloud tag is :

<?php wp_tag_cloud( $args ); ?>
You can pass the following arguments to the function:
  • ’smallest’
  • ‘largest’
  • ‘unit’
  • ‘number’
  • ‘orderby’
The sample code are:
<?php wp_tag_cloud(’smallest=8&largest=22′); ?>
<?php wp_tag_cloud(’smallest=8&largest=22&number=40′); ?>

, , , , , , , , ,

No Comments