Obrazek na pełen ekran | jQuery

http://css-tricks.com/examples/FullPageBackgroundImage/jquery.php

Jquery - zmiana stylu elementów




  1. <div id="nazwa1"></div>
  2. <div id="nazwa2"></div>
  3. <div id="nazwa3"></div>
  4. ...itd



  1. <script type="text/javascript">
  2. var tablica = document.getElementsByClassName('youtube-player');
  3. for (n in tablica) {
  4. tablica[n].style.width = '400px';
  5. tablica[n].style.height = '260px';
  6. }
  7. </script>

Rozmiar tekstu a rozdzielczość ekranu, Script, PHP, HTML

<p id="tekst">tekst 2</p>

<
script>
    
document.getElementById('tekst').style.setProperty('font-size',(window.innerHeight*10)/100+'px','')

Pokazanie strony dopiero po załadowaniu wszystkich elemntów

<!-- THREE STEPS TO INSTALL PRELOAD PAGE:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the onLoad event handler into the BODY tag
  3.  Put the last coding into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Gilbert Davis -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function loadImages() {
if (document.getElementById) {  // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) {  // Netscape 4
document.hidepage.visibility = 'hidden';
}
else {  // IE 4
document.all.hidepage.style.visibility = 'hidden';
      }
   }
}
//  End -->
</script>
</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->

<BODY OnLoad="loadImages()">

<!-- STEP THREE: Copy this code into the BODY of your HTML document  -->

<div id="hidepage" style="position: absolute; left:5px; top:5px; background-color: #FFFFCC; layer-background-color: #FFFFCC; height: 100%; width: 100%;">

<table width=100%><tr><td>Page loading ... Please wait.</td></tr></table></div>

<!-- put the rest of your page contents here -->

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  1.20 KB -->

Jquery - random losowe liczby


PHP - wycinanie znaków "pomiędzy"

function get_between($input, $start, $end)
{
  $substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));
  return $substr;
}

$string = "123456789";
$a = "1";
$b = "9";

Zwróci: 2345678

LinkWithin-4

Related Posts Plugin for WordPress, Blogger...