Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
dwa problemy 1. otwieranie strony w tabeli 2. System newsow na stronie // pomocy
#1
Nie wiem czy dobrze nazwalem temat, ale mniej wiecej chodzi o to:
mam juz zrobiony, pocięty layout, złożony w całość w Dreamweaverze.
Moj problem polega na tym, ze chce aby podstrony otwierały sie w konkreknym miejscu na stronie glownej. oto screen: http://img160.imageshack.us/img160/4676/strona1vs6.jpg
oto kod
Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Szkola Promujaca Zdrowie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css">
<!--
body {
    background-image: url(img/index_03.jpg);
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
.styl1 {
    font-size: 12pt;
    font-weight: bold;
}
-->
</style>
</head>

<body onLoad="MM_preloadImages('img/index_before_11.jpg','img/index_before_20.jpg','img/index_before_23.jpg','img/index_before_25.jpg','img/index_before_24.jpg','img/index_before_21.jpg','img/index_before_22.jpg')">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="middle" class="middle"><table width="728" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="img/index_07.jpg" width="138" height="12"></td>
        <td><img src="img/index_08.jpg" width="600" height="12"></td>
        <td><img src="img/index_09.jpg" width="8" height="12"></td>
      </tr>
      <tr>
        <td valign="top" background="img/index_27.jpg"><a href="javascript:;" onMouseOver="MM_swapImage('Image1','','img/index_before_11.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img/index_11.jpg" name="Image1" width="138" height="41" border="0" id="Image1"></a><br>          <a href="javascript:;" onMouseOver="MM_swapImage('Image2','','img/index_before_20.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img/index_20.jpg" name="Image2" width="138" height="42" border="0" id="Image2"></a><br>          <a href="javascript:;" onMouseOver="MM_swapImage('Image3','','img/index_before_21.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img/index_21.jpg" name="Image3" width="138" height="43" border="0" id="Image3"><br>
            </a><a href="javascript:;" onMouseOver="MM_swapImage('Image5','','img/index_before_23.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img/index_23.jpg" name="Image5" width="138" height="41" border="0" id="Image5"></a><br>          <a href="javascript:;" onMouseOver="MM_swapImage('Image6','','img/index_before_24.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img/index_24.jpg" name="Image6" width="138" height="43" border="0" id="Image6"><br>
          </a><a href="1.txt" target="img/index_17.jpg" onMouseOver="MM_swapImage('Image4','','img/index_before_22.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img/index_22.jpg" name="Image4" width="138" height="43" border="0" id="Image4"></a><br>
          <a href="text.htm" target="_top" onMouseOver="MM_swapImage('Image7','','img/index_before_25.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img/index_25.jpg" name="Image7" width="138" height="41" border="0" id="Image7"></a><br>          
          <br></td>
        <td align="center" valign="middle" background="img/index_12.jpg"><table width="580" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="580"><img src="img/index_15.jpg" width="579" height="6"></td>
          </tr>
          <tr>
            <td background="img/index_17.jpg"><p align="center">&nbsp;</p>
              <p>&nbsp;</p>              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p></td>
          </tr>
          <tr>
            <td><img src="img/index_26.jpg" width="579" height="133"></td>
          </tr>
        </table></td>
        <td background="img/index_13.jpg">&nbsp;</td>
      </tr>
      <tr>
        <td><img src="img/index_29.jpg" width="138" height="78"></td>
        <td><img src="img/index_30.jpg" width="600" height="78"></td>
        <td><img src="img/index_31.jpg" width="8" height="78"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>

Prosiłbym o wytłumaczenie tego bardzo prostym językiem, gdyz dopiero zaczalem prace z html'em Big Grin

pozdrawiam
Odpowiedz
#2
albo skorzystaj z iframe (odradzam) albo poszukaj o include() w php.
Odpowiedz
#3
nie wiem czy to dobrze zrozumiałem, ale piszesz text w tej tabeli zapisujesz go jako np. zdrowie.html i potem ustawiasz hiperłącze w menu
Odpowiedz
#4
http://www.kurshtml.boo.pl/html/ramki_lokalne,ramki.html

ale z iframe już sie nie korzysta !!
Odpowiedz
#5
(04-01-2009, 11:37)janoz5 napisał(a): nie wiem czy to dobrze zrozumiałem, ale piszesz text w tej tabeli zapisujesz go jako np. zdrowie.html i potem ustawiasz hiperłącze w menu
To oczywiscie najprostszy sposob, ale chodzi mi o to, aby nie ładował całej grafiki od nowa tylko wlasnie ten text, ale dzieki za odzew Big Grin
Mam jeszcze jeden problem, nawet nie chodzi tu o ten sam projekt tylko zwykł przykład jak zrobic system newsow. Znalazlem takie cos: http://www.kurshtml.boo.pl/skrypty/system_newsow,aktualizacja.html i niby robie wszystko jak tam jest opisane
Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="Stylesheet" type="text/css" href="news.css" />
<script type="text/javascript" charset="iso-8859-2" src="news.js"></script>
</head>

<body class="news">
<p class="news_date">
  <script type="text/javascript">
// <![CDATA[
var news = new News();

/////
// Dodawanie newsów w postaci:
// news.dodaj(dzien,miesiac,rok,
//   'Tytul','Tresc newsa...',
//   'adres','ramka',
//   'autor','e-mail',
//   'obrazek',szerokosc,wysokosc);
/////

//////////
// Dodawanie newsów:
news.dodaj(dzien,miesiac,rok, 'Tytul', 'Tresc newsa...');
news.dodaj(dzien,miesiac,rok, 'Tytul', 'Tresc newsa...');
news.dodaj(dzien,miesiac,rok, 'Tytul', 'Tresc newsa...');
//////////

news.wyswietl();
// ]]>
</script>
</p>
</body>
</html>
Jednak widok projektu jest cały czas pusty. O co chodzi ? Jak zrobic zeby ten newsy sie wyświetlały?
Z gory dzieki, pozdrawiam
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  Jak zrobic Formularz Kontaktowy na stronie ? Kodarth 191 255,841 06-04-2021, 16:25
Ostatni post: zerin
  Pomocy - strona napisana w ?? [email protected] 1 2,040 03-10-2019, 18:09
Ostatni post: wozniak
Toungue Pomagamy rozwiązywać problemy. Kamis086 0 1,435 30-12-2018, 23:28
Ostatni post: Kamis086
  Problemy z rotatorem banerów marian65 1 1,870 24-10-2018, 20:05
Ostatni post: Marcin
  Weryfikacja zdjęć na stronie widzaceoko 0 1,705 19-02-2018, 02:26
Ostatni post: widzaceoko

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl