jquery - How to achieve this title generation from this website -
I have been presented with the title of a page to the user of this website with Jackie, try to achieve something like I am doing this, ie:
When you click on a thumbnail from the main index, the title of that thumbnail prepares different values as long as the user Does not appear properly.
Just wondering if it can be achieved anyhow using jQuery, though it is using Adobe Flash?
Thank you.
This is a way without jQuery I'm sure this correction can be done, but I hope that It helps and offers you this idea how to do it.
& lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; Function createRandomString (length, id, callback, value) {if (value of type == "undefined") {value = ""; } If (value.length == length) {callback (value); Return; } Var c = ((Math. (Math. Random) * 100))% 127); If (c == '\' '|| c ==' \ "') {c = 33;} value + = String.fromCharCode (Math.max (33, c)); document getElementById (id) .winnerHTML = Value; setTimeout (createRandomString (length, id, callback, value)}, 20};} function change header (id, actual string, random string) {if (typeof randomString == "undefined") {createRandomString ( RealString length, id, function (value) {changeHeader (id, realstring, value);}); return;} var d = realString.length - randomString.length; var Modified string = realString.substring (0, d) + randomString ; Document .getElementById (id) .innerHTML = Modified string; if (randomString.length == 0) {return;} randomString = randomString.substring (1); setTimeout (f Quote () {changeHeader (id, realstring, randomString);}, 50 & lt; / h1 & gt; Button onclick = "changeHeader ('test', 'this is header'); Gt; & lt; / head & gt; & lt; body & gt; & lt; h1id = "test") & gt; t est & lt; / button & gt; & lt; / body & gt; Lt; / html & gt;
Comments
Post a Comment