m5alsalahy
Posts: 14
|
| Posted: 02/28/2009, 12:08 AM |
|
hi every one..
i have menu in the right of my project ..
so i want when i click in menu it open the page in iframe in middle of my project ...
i hope my question is clear
|
 |
 |
damian
Posts: 838
|
| Posted: 02/28/2009, 3:44 AM |
|
make sure you give your iframe a name -
name="myiframe"
target the links using -
target="myiframe" within the anchor tag
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
m5alsalahy
Posts: 14
|
| Posted: 02/28/2009, 7:33 AM |
|
thanks damian ..
yes i give the iframe name ....and it works in the same page
but i have tow pages ... so how i click in page1 and ifame open page in page2
|
 |
 |
jjrjr1
Posts: 942
|
| Posted: 02/28/2009, 7:49 AM |
|
Hi
This might help you.
http://ccselite.com/forums_topics_view.php?forum_id=5&forum_topic_id=64
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
damian
Posts: 838
|
| Posted: 03/01/2009, 3:53 AM |
|
Page 1
<a href="page2.php?page3.php">page3</a><br>
<a href="page2.php?page4.php">page4</a><br>
In the head of page 2
<script type="text/javascript">
<!--
function loadIframe(){
if (location.search.length > 0){
url = unescape(location.search.substring(1))
window.frames["myiframe"].location=url
}
}
onload=loadIframe
//-->
</script>
and in your page body
<iframe name="myiframe" id="myiframe" src=""></iframe>
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
Oper
Posts: 1195
|
| Posted: 03/01/2009, 5:38 AM |
|
m5alsalahy check here what you need:
http://www.trans4mind.com/personal_development/HTMLGuide/iframes3.htm
http://www.dynamicdrive.com/forums/archive/index.php/t-3879.html
Also de Damian sample is Perfect.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |