Ииршишнивп ■l/fl w eb-dizflyn ■



Download 9,72 Mb.
Pdf ko'rish
bet110/110
Sana24.01.2022
Hajmi9,72 Mb.
#407171
1   ...   102   103   104   105   106   107   108   109   110
Bog'liq
Kompyuter grafikasi va web-dizayn.Мамаражабов М


displayWindow)  -
  bu  brauzerning  istalgan  oynasida  foydalanish
 
m um kin  b o ig a n   o ‘ziga  xos  identifikator.
Oynalarni  yopish.  Siz  yana  JavaScript  tili  yordamida  oynalarni
 
yopishingiz ham  mumkin.  Buni  amalga oshirish  uchun  sizga clo se()
 
m etodi kerak b o‘ladi.  Keling,  oldinroq ko‘rganimiz  kabi  yangi  oyna
 
ocham iz  va  unga  navbatdagi  sahifani  yuklaymiz:
< h tm l> ;
;
< !-—  hide;
 
function  closeIt()  {
 
close();
}
/ /
< /scrip t> ;
;
317


;
iin p u t  type=buiton  value=»Yopish»  onClick=«closeIt()»>; 
;
;
< /htm l> .
Endi  agar  siz  yangi  oynadagi  tu g m a c h a n i  bossangiz,  u 
yopiladi. 
open()
  va 
close()
  -   bu  window  obyektining  metodidir. 
Biz  shuni  yodda  tutishim iz  kerakki,  oddiygina  qilib 
open()
  va 
close()
  shaklida  em as,  balki 
window.open()
  va 
window.close()
 
k o ‘rin ish id a   yozish  kerak.  A m m o   b iz n in g   h o la td a  
window
 
obyektini  tushirib qoldirishimiz  mumkin. Agar siz  bu  obyektning 
usullaridan  birini  chaqirm oqchi  bo‘lsangiz  (va  u  faqatgina  shu 
obyekt  uchungina  m u m k in ),  u  holda  siz  window  prefiksini 
yozishingiz  shart  emas.
Hujjatni dinamik ravishda yaratish.  Endi biz hujjatlarni  dinamik 
ravishda  yaratish  kabi  JavaScriptning  ajoyib  imkoniyatini  ko‘rib 
chiqishga  tayyormiz.  Ya’ni  JavaScriptda  tuzilgan  skriptning o ‘ziga 
yangi  HTML-sahifalarni yaratishga  ruxsat berish  mumkin.  Bundan 
tashqari,  shu  y o i   bilan  web-hujjatning  V R M L -k o ‘rinishlar  va 
boshqa  hujjatlarini  ham  yaratish  mumkin.  Qulaylik  uchun  bu 
hujjatlarni  alohida  oyna  yoki  freymga  joylashtirish  mumkin.
Avval  biz  oddiy  HTML-hujjat  yaratamiz  va  uni  yangi  oynada 
namoyish  qilamiz.
Quvidaei  skriptni  ko'ramiz:
;
;
;
< ! - -   hide
function  openWin3()  { 
myWin=  open(«»,  «displayWindow»,
«width=500,  height=400,  status=yes,  toolbar=yes,  m enubar= 
=yes»);
/ /   keyinchalik  bosib  chiqarish  uchun  hujjat  obyektini  ochish 
myWin.document.open();
/ /   yangi  hujjatni  ochish;
myWin.document.write(«TecT»);  <br />myWin. document .write(«</title > </head > <body>»); <br />318 <br /></div> <hr /><div id="page323-div" > <br />rnyWin.document.write(«<center>»);  <br />my Win. document, write («Bu  HTM L-hujjat  ochildi»);  <br />myWin.document.write(«JavaScript  yordamida!«);  <br />myW in.document.write(«</center>»);  <br />m y  W i n . d o c u m e n t  .write ( « < / b o d y >  < / h t m l  > »); <br />/ /   h ujjatni  yopish  —  (lekin  o y n a n i  emas!)  <br />m y  W i n .d o c u m e n t .c lo s e ( ) ; <br />} <br />/ / <br />< / s c r i p t > ; <br />< /head> ; <br /><body>; <br />< f o r m > ; <br />« in p u t  type=button  value=«Ochish»  onClick=«openWin3()»>;  <br />< /fo rm > ; <br />»); <br />—  myW in.document.write(«<centerXfont  size=+3>»); <br />—  myWin.document.write(«Bu  HTML-hujjat  ochildi»); <br />—  myWin.document.write(«JavaScript  yordamida!»); <br />—  my Win.document. w rite(« < /fo n tX /cen ter> » ); <br />—  m yW in.docum ent.w rite(« </centerxfont></body></body></htmi></script></head></htm></script><br /><center><div class="but3 rad"><a rel="nofollow" href="/download/iirshishnivp-lfl-w-eb-dizflyn.doc">Download</a> 9,72 Mb.</div></center><br /><b>Do'stlaringiz bilan baham:</b> <div style="display:flex;"> <link itemprop="url" href="hozir.org//iirshishnivp-lfl-w-eb-dizflyn.html?page=110"> <a itemprop="sameAs" href="https://www.facebook.com/sharer/sharer.php?u=hozir.org%2F%2Fiirshishnivp-lfl-w-eb-dizflyn.html%3Fpage%3D110" target="_blank" rel="nofollow"> <img width=32px src="/i/fb.svg" alt=""> </a> <a itemprop="sameAs" href="https://twitter.com/intent/tweet?url=hozir.org%2F%2Fiirshishnivp-lfl-w-eb-dizflyn.html%3Fpage%3D110" target="_blank" rel="nofollow"> <img width=32px src="/i/tw.svg" alt=""> </a> <a itemprop="sameAs" href="//vk.com/share.php?url=hozir.org%2F%2Fiirshishnivp-lfl-w-eb-dizflyn.html%3Fpage%3D110&title=&comment=" target="_blank" rel="nofollow"> <img width=32px src="/i/vk.svg" alt=""> </a> <a itemprop="sameAs" href="https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=hozir.org%2F%2Fiirshishnivp-lfl-w-eb-dizflyn.html%3Fpage%3D110" target="_blank" rel="nofollow"> <img width=32px src="/i/ok.svg" alt=""> </a> <a itemprop="sameAs" href="https://telegram.me/share/url?url=hozir.org%2F%2Fiirshishnivp-lfl-w-eb-dizflyn.html%3Fpage%3D110&text=" target="_blank" rel="nofollow"> <img width=32px src="/i/tg.svg" alt=""> </a> <a itemprop="sameAs" href="viber://forward?text=hozir.org%2F%2Fiirshishnivp-lfl-w-eb-dizflyn.html%3Fpage%3D110" target="_blank" rel="nofollow"> <img width=32px src="/i/vb.svg"> </a> <a itemprop="sameAs" href="whatsapp://send?text=hozir.org%2F%2Fiirshishnivp-lfl-w-eb-dizflyn.html%3Fpage%3D110" target="_blank" rel="nofollow"> <img width=32px src="/i/wa.svg"> </a> <a itemprop="sameAs" href="https://pinterest.com/pin/create/button/?url=hozir.org%2F%2Fiirshishnivp-lfl-w-eb-dizflyn.html%3Fpage%3D110&media=&description=" target="_blank" rel="nofollow"> <img width=32px src="/i/pi.svg"> </a> </div></td></tr></table><div id="bottom_pages" align="center"><a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html">1</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=2">...</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=102">102</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=103">103</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=104">104</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=105">105</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=106">106</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=107">107</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=108">108</a>   <a class="t4 fs20" href="http://hozir.org/iirshishnivp-lfl-w-eb-dizflyn.html?page=109">109</a>   <font class="fs18">110</font> </div><div align="center"><!-- Composite Start --> <div id="M415186ScriptRootC1266695"></div> <script src="https://jsc.mgid.com/h/o/hozir.org.1266695.js" async></script> <!-- Composite End --></div><br /><br /><br /><noindex><hr /><div align="center" style="font-size:12px;">Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024<br /> <a rel="nofollow" href="//hozir.org/?abuse=1">ma'muriyatiga murojaat qiling</a><br /></noindex><br /> <script type="text/javascript"><!-- document.write("<a href='//www.liveinternet.ru/click' "+ "target=_blank><img src='//counter.yadro.ru/hit?t14.1;r"+ escape(document.referrer)+((typeof(screen)=="undefined")?"": ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ ";"+Math.random()+ "' alt='' border='0' width='88' height='31'><\/a>") //--></script> </div></div></td> <td><div style="right:0px;top:0px;"><a href="/cabinet/">kiriting</a> | <a href="/cabinet/?reg=1">ro'yxatdan o'tish</a><hr>     <a href="/">Bosh sahifa</a><br /><a href="/?q=юртда+тантана">юртда тантана</a><br /><a href="/?q=Боғда+битган">Боғда битган</a><br /><a href="/?q=Бугун+юртда">Бугун юртда</a><br /><a href="/?q=Эшитганлар+жилманглар">Эшитганлар жилманглар</a><br /><a href="/?q=Эшитмадим+деманглар">Эшитмадим деманглар</a><br /><a href="/?q=битган+бодомлар">битган бодомлар</a><br /><a href="/?q=Yangiariq+tumani">Yangiariq tumani</a><br /><a href="/?q=qitish+marakazi">qitish marakazi</a><br /><a href="/?q=Raqamli+texnologiyalar">Raqamli texnologiyalar</a><br /><a href="/?q=ilishida+muhokamadan">ilishida muhokamadan</a><br /><a href="/?q=tasdiqqa+tavsiya">tasdiqqa tavsiya</a><br /><a href="/?q=tavsiya+etilgan">tavsiya etilgan</a><br /><a href="/?q=iqtisodiyot+kafedrasi">iqtisodiyot kafedrasi</a><br /><a href="/?q=steiermarkischen+landesregierung">steiermarkischen landesregierung</a><br /><a href="/?q=asarlaringizni+yuboring">asarlaringizni yuboring</a><br /><a href="/?q=o'zingizning+asarlaringizni">o'zingizning asarlaringizni</a><br /><a href="/?q=Iltimos+faqat">Iltimos faqat</a><br /><a href="/?q=faqat+o'zingizning">faqat o'zingizning</a><br /><a href="/?q=steierm+rkischen">steierm rkischen</a><br /><a href="/?q=landesregierung+fachabteilung">landesregierung fachabteilung</a><br /><a href="/?q=rkischen+landesregierung">rkischen landesregierung</a><br /><a href="/?q=hamshira+loyihasi">hamshira loyihasi</a><br /><a href="/?q=loyihasi+mavsum">loyihasi mavsum</a><br /><a href="/?q=faolyatining+oqibatlari">faolyatining oqibatlari</a><br /><a href="/?q=asosiy+adabiyotlar">asosiy adabiyotlar</a><br /><a href="/?q=fakulteti+ahborot">fakulteti ahborot</a><br /><a href="/?q=ahborot+havfsizligi">ahborot havfsizligi</a><br /><a href="/?q=havfsizligi+kafedrasi">havfsizligi kafedrasi</a><br /><a href="/?q=fanidan+bo’yicha">fanidan bo’yicha</a><br /><a href="/?q=fakulteti+iqtisodiyot">fakulteti iqtisodiyot</a><br /><a href="/?q=boshqaruv+fakulteti">boshqaruv fakulteti</a><br /><a href="/?q=chiqarishda+boshqaruv">chiqarishda boshqaruv</a><br /><a href="/?q=ishlab+chiqarishda">ishlab chiqarishda</a><br /><a href="/?q=iqtisodiyot+fakultet">iqtisodiyot fakultet</a><br /><a href="/?q=multiservis+tarmoqlari">multiservis tarmoqlari</a><br /><a href="/?q=fanidan+asosiy">fanidan asosiy</a><br /><a href="/?q=Uzbek+fanidan">Uzbek fanidan</a><br /><a href="/?q=mavzulari+potok">mavzulari potok</a><br /><a href="/?q=asosidagi+multiservis">asosidagi multiservis</a><br /><a href="/?q='aliyyil+a'ziym">'aliyyil a'ziym</a><br /><a href="/?q=billahil+'aliyyil">billahil 'aliyyil</a><br /><a href="/?q=illaa+billahil">illaa billahil</a><br /><a href="/?q=quvvata+illaa">quvvata illaa</a><br /><a href="/?q=falah'+deganida">falah' deganida</a><br /><a href="/?q=Kompyuter+savodxonligi">Kompyuter savodxonligi</a><br /><a href="/?q=bo’yicha+mustaqil">bo’yicha mustaqil</a><br /><a href="/?q='alal+falah'">'alal falah'</a><br /><a href="/?q=Hayya+'alal">Hayya 'alal</a><br /><a href="/?q='alas+soloh">'alas soloh</a><br /><a href="/?q=Hayya+'alas">Hayya 'alas</a><br /><a href="/?q=mavsum+boyicha">mavsum boyicha</a><br /><p style="margin-top:5px;"></p><hr><a href="/upload/">yuklab olish</a><br /><center></center></div></td> </tr> </table></body></html>