Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
🔒 NordVPN Premium – 3 Months
hrdilshan
Updated:
11 minutes ago
🚀 Microsoft Office 365 Pro Plus – Lifetime Access! 🚀
hrdilshan
Updated:
12 minutes ago
Linkedin Premium Business / Careere /Sales Navigator - 1/2/3/6/9/12 Months - Reddem Link
hrdilshan
Updated:
13 minutes ago
Colombo
YEYE 3 in 1 Instant Coffee Mix 50 Sachet
Romeshka
Updated:
Yesterday at 12:16 AM
Colombo
Red Hat Certified System Administrator (RHCSA) - RHEL 10
Sanjeewani95
Updated:
Friday at 7:43 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
More Help!!!!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="GTRZ" data-source="post: 3619" data-attributes="member: 1"><p>============================================================</p><p>Script: Ask Visitor For Name Script</p><p></p><p>Functions: A very simple paste-it-in script that asks the</p><p> vistor for his or her name when entering your</p><p> page, then prints a "Hello" welcome message</p><p> anywhere you wish in the body of the page.</p><p> If the visitor does not type in a message,</p><p> a default message shows, instead. Very easy</p><p> install for JavaScript newcomers.</p><p></p><p>Browsers: NS3-6, IE4-6</p><p></p><p>Author: etLux</p><p>============================================================</p><p></p><p>INSTRUCTIONS:</p><p></p><p>Paste the following <script> ... </script> block into the</p><p><body> (notice we said the body, *not* the <head>) of</p><p>your page, exactly where you would like the message to</p><p>appear.</p><p></p><p><script></p><p></p><p>var whatName=prompt("Please type in your name:","");</p><p>function doName(theName){</p><p> if ((whatName != "")&&(whatName !=null)){</p><p> // you can modify this as needed</p><p> // this is the message if a name is typed in </p><p> document.writeln("Hello "+whatName+"!")</p><p> }else{</p><p> // you can modify this as needed</p><p> // this is the message if a name is *not* typed in</p><p> document.writeln("Hello!")</p><p> }</p><p>}</p><p></p><p>doName(whatName);</p><p></p><p></script></p><p></p><p>============================================================</p><p></p><p>Design Notes:</p><p></p><p>1.</p><p></p><p>When you use an in-the-body script like this, you will </p><p>usually want to format the text it prints into the page.</p><p></p><p>This is simple enough to do -- just surround the the</p><p><script> ... </script> block with font tags, like this:</p><p></p><p><font face="Arial" size="2" color="#FF0000"></p><p><script></p><p>.</p><p>.</p><p>.</p><p></script></p><p></font></p><p></p><p>Change the face, size, and color to match your design.</p><p></p><p>2.</p><p></p><p>You may not, of course, want to use the "Hello Name!"</p><p>message we show. See the two commented lines in the script</p><p>above for where you can change the message.</p><p></p><p>============================================================</p><p></p><p>hope this helps, you can change the colour, font, size everything in this.. <img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></p></blockquote><p></p>
[QUOTE="GTRZ, post: 3619, member: 1"] ============================================================ Script: Ask Visitor For Name Script Functions: A very simple paste-it-in script that asks the vistor for his or her name when entering your page, then prints a "Hello" welcome message anywhere you wish in the body of the page. If the visitor does not type in a message, a default message shows, instead. Very easy install for JavaScript newcomers. Browsers: NS3-6, IE4-6 Author: etLux ============================================================ INSTRUCTIONS: Paste the following <script> ... </script> block into the <body> (notice we said the body, *not* the <head>) of your page, exactly where you would like the message to appear. <script> var whatName=prompt("Please type in your name:",""); function doName(theName){ if ((whatName != "")&&(whatName !=null)){ // you can modify this as needed // this is the message if a name is typed in document.writeln("Hello "+whatName+"!") }else{ // you can modify this as needed // this is the message if a name is *not* typed in document.writeln("Hello!") } } doName(whatName); </script> ============================================================ Design Notes: 1. When you use an in-the-body script like this, you will usually want to format the text it prints into the page. This is simple enough to do -- just surround the the <script> ... </script> block with font tags, like this: <font face="Arial" size="2" color="#FF0000"> <script> . . . </script> </font> Change the face, size, and color to match your design. 2. You may not, of course, want to use the "Hello Name!" message we show. See the two commented lines in the script above for where you can change the message. ============================================================ hope this helps, you can change the colour, font, size everything in this.. :yes: [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom