السلام عليكم ورحمة الله وبركاته
عندي هذا الكود وهو من أجل أن يفتح الصفحات المرقمة والمشكلة هي فتح الصفحات داخل الفريم حيث تظهر لي مسج خظاء
الرجاء ممن يعرف أن يصحح الكود أو يعرف بديل له
وشكرا
index.htm
======
<html>
<head>
<title>Fillmore's index</title>
</head>
<frameset framespacing="0" cols="*">
<frameset rows="88%,*">
<frame name="mainframe"
src="fillm1.htm">
<frame name="navigation"
src="navigate.htm">
</frameset>
<noframes>
<body>
<!-- This text is displayed in browser
that does not support frames -->
<p>Your browser does not support frames.
Try <a HREF="fillm1.htm">this</a></p>
</body>
</noframes>
</frameset>
<frameset>
<noframes>
</noframes>
</frameset>
</html>
============================================
navigate.htm
<html>
<head>
<script LANGUAGE="JavaScript">
<!-- Hide this from JavaScript non-enabled browsers
//Variables; setting the initial value of the current page
var FirstPage = 1;
var LastPage = 7; // This 'book' has 7 pages
var CurrentPage = FirstPage;
// displays page number PageNumber in main frame
function display(PageNumber) {
var page = "" + PageNumber;
page = "fillm" + page + ".htm";
frames["mainframe"].location.href = page;
CurrentPage = PageNumber;
}
// displays previous page (previous to the current page)
function goToPrevPage() {
if ( CurrentPage != FirstPage)
CurrentPage--;
display(CurrentPage);
}
// displays the next page (next to the current page)
function goToNextPage() {
if ( CurrentPage != LastPage)
CurrentPage++;
display(CurrentPage);
}
// displays the first page of your 'book'
function goToFirstPage() {
display(FirstPage);
}
// displays the last page of your 'book'
function goToLastPage() {
display(LastPage);
}
// display the top of the current page
function goToTopOfPage() {
display(CurrentPage);
}
// End of JavaScript -->
</script>
<title>Navigation bar</title>
<base target="mainframe">
</head>
<body>
<!-- go to first page button -->
<a href="#" onClick="goToFirstPage()">
<img src="first.gif" alt="go to first page" border="0"></a>
<!-- go to previous page button -->
<a href="#" onClick="goToPrevPage()">
<img src="previous.gif" alt="previous page" border="0"></a>
<!-- go to top of the page button -->
<a href="#" onClick="goToTopOfPage()">
<img src="top.gif" alt="go to top of this page" border="0"></a>
<!-- go to next page button -->
<a href="#" onClick="goToNextPage()">
<img src="next.gif" alt="go to next page" border="0"></a>
<!-- go to last page button -->
<a href="#" onClick="goToLastPage()">
<img src="last.gif" alt="go to last page" border="0"></a>
</body>
</html>