Page 1 of 1

Useful php/html code

Posted: Tue Sep 09, 2008 12:25 pm
by Sethioz
*Image with dimensions:

Code: Select all

<img src="image_path_here" width="600" height="460">
works on all forums/sites that allows php/html code posting.

*Inline Frame (iframe) - allows you to embed html page inside another html page. very useful when designing pages.

Code: Select all

<iframe height="300" width="300" frameborder="0" src="source_here" style=
"width= 90%; margin= 0; padding= 0; border= 0; overflow= hidden;" scrolling="yes" border="0" allowtransparency="true"></iframe>
there's several options which you can change, but this is the way i like it.


*php redirection - do not mistake it with the simple refresh.

Code: Select all

<?php
header("location: http://sethioz.co.uk");
?>
if you not totally retarded, then you should see where you have to put your URL.


*onclick link for mouse hover areas - check my forum's index page. this is about the highlighted row part on mouse hover, when you click then it takes you into the topic, you can place any link into the code.

Code: Select all

onclick="window.location.href='yourURLhere'"
note that theres double " ' ' ". first " then 'YOUR URL' and then closing " < pay attention what you doing.