Search:
Type: Posts; User: mikem
Search :
Search took 0.01 seconds.
Bir şey değil (You are welcome).
Mike :)
... or preferably, for an alternative avoiding the javascript protocol, use something like this:
function edit(pic,txt)
{
document.getElementById("pix").src=pic;
...
Merhaba rosina, Maybe something like this then...
function edit(pic,txt)
{
document.getElementById("pix").src=pic;
document.getElementById("lbl").innerHTML=txt;
}
<div...
Hi, This may help...
function examine(country)
{
document.getElementById("union").style.visibility=(country === "USA") ? "visible":"hidden";
}
<select name="country"...
Hi rosina, To write text over images you can change the background of a <div> and its innerHTML from each hyperlink, something like this...
function edit(pic,txt)
{
var...
Hi, id values must be unique within a document, but you have duplicated id values in <div> and <a> elements...
Mike :)
\uFFFF is the Unicode escape sequence where characters are represented in the range from \u0000 to \uFFFF. For example...
document.write( "Copyright Symbol is \u00A9" ); // Writes "Copyright...
Bir şey değil (You're welcome).
Selam (regards),
Mike :)
Merhaba,
var now=new Date();
if( (now.getMonth() === 1) && (now.getDate() === 1) ) // JavaScript months are numbered 0-11.
{
document.write(now);
}
Bir şey değil (You're welcome).
Selam (regards),
Mike :)
Hi, This may help...
var len = document.forms[0].CATEGORY.length;
var forem = document.forms[0]; // Do not enclose assigned value in quotes.
var i = 0;
var CAT = "";
while(i < len)
{
...
Hi, This may help...
function link(month,day)
{
var date = new Date(2009,(month-1),day,0,0,0,0); // JavaScript months are 0-11.
var now = new Date();
if(now > date)
{
...
Hi, Not sure I got you but this might help, but only when run via HTTP -through a web server...
s1.html:
<a href="s2.html">Go To Site 2</a>
<a href="http://www.google.com">Go To Google</a>
...
Hi, Try removing enctype="text/plain" from the <form> tag.
Mike:)
Hi toicontien, Is this what you are suggesting?
html1.html...
function popup() { var win=open("html2.html","",""); }
<form onsubmit="popup()"><input name="user" type="text" value="Mike"><input...
Hi, This may help...
var timerUp, timerDown, defaultStep=1, step=defaultStep;
function scrollDivDown()
{
document.getElementById("thumbs").scrollTop += step;
...
Or more cross-browser compliant as...
<script type="text/javascript">
var sum, leg=0;
function next(n)
{
if(leg<1)
{
sum=0;
Hi, This may help...
<script type="text/javascript">
var sum, leg=0, ebi=document.getElementById;
function next(n)
{
if(leg<1)
{
sum=0;
Hi, Taking a quick glance, it seems you may have a few hiccups...
function getnationality() // 1. Function definitions require trailing ()parentheses.
{var nationality = "";
var length =...
Bir şey değil (You're welcome).
Selam (regards),
Mike :)
Hi, This should get you started...
<script type="text/javascript">
var tim, cur=1;
function preLoad()
{
var i, arr=[];
for(i=2; i<7; i++)
Hi again, You can add a line to the previously supplied function to color the new items' background...
function addOptions()
{
var optionList=document.getElementById("menu");
for(var...
Hi, At a quick glance, maybe try adding parentheses around the second conditional test...
if (isEmpty(document.customer.p_tax_registration.value) && (document.customer.p_tax_reference.value ==...
Selam (Hi), Bir şey değil. (You're welcome.) Mike :)
Hi, This may help...
var str = "do i have £3.00 in my pocket???";
alert(str.replace(/[^a-zA-Z 0-9]+/g,'')); Mike :)