iframes and javascript -
i have simple webpage used include html file left navigation. here code each button:
<tr><td id="tdindex" onmouseout="javascript:domouseout(this)" onmouseover="javascript:domouseover(this)" class="menudefault" onclick="javascript:navpage('all_rooms_today.html');">all rooms overview</td></tr>
here iframe code on parent page:
<iframe src="all_rooms_today.html" style="width: 100%; height: 500px" scrolling="yes" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0"> </iframe>
i need write javascript function navpage populate iframe
.
any appreciated.
no need javascript.
<a href="all_rooms_today.html" target="name_of_frame">all rooms overview</a> <iframe name="name_of_frame" …>
you can replace mouseover/out stuff with:
#some_container { display: block; } #some_container a:hover { background: foo; color: bar; }
if can't, should remove string javascript:
there no use in having a label @ point (if think means "this javascript", you're wrong, intrinsic event attributes you meta element).
for matter, frames pain bookmarking , search engines (among other things). you're using includes, should keep using them , have proper pages including navigation instead of framed pages.
Comments
Post a Comment