Jump to content
php.lv forumi

scripts


airbus

Recommended Posts

Man nav skripta par zvaigznīti :( Ir tikai par mēnestiņu. Skripts paprasa, "Vai Tev patīk mēnestiņš" un, ja lietotājs uzspiež "jā", tad pievieno tekstam mēnestiņu. Bet zvaigznītes gan nav... Kā nu nav, tā nu nav.

 

<html><head>
<script>function dikti_gribu_menestinu(manta){ manta.innerHTML = manta.innerHTML + ' <img src="menesins.png"/>'; }</script>
</head><body>
<p id="teksts">Vai Tev patīk mēnestiņš?</p><input type="button" onmouseup="dikti_gribu_menestinu(document.getElementById('teksts'));" value="Jā"/></body>
</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...