•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 330,014 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,572 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 9717 | Replies: 14
![]() |
•
•
Join Date: Nov 2003
Location: New Delhi, India
Posts: 95
Reputation:
Rep Power: 6
Solved Threads: 1
•
•
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation:
Rep Power: 12
Solved Threads: 1
The best way is to do it with a GIF editor. You would need two frames. One with a "|" graphic and one without one. If you don't want a graphic, you could try something like this, but the only flaw is when the user clicks somewhere else, they would need to click back on this "invisible input box" to see the blinking cursor. This is the simplest way to do it. It's better to go with an animated GIF.
<html>
<head>
<script language="JavaScript">
function setFocus() {
document.someform.blinkcursor.focus();
}
</script>
<style>
input.cursor {
/* makes the inputbox borders disappear */
border:none;
}
</style>
</head>
<body onLoad="setFocus()">
<form name="someform">
The following is a blinking cursor <input type="text" class="cursor" size="1" maxlength="0" name="blinkcursor">
</form>
</body>
</html> _.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
•
•
Join Date: Jan 2004
Location: Austalia
Posts: 41
Reputation:
Rep Power: 5
Solved Threads: 2
i use http://www.designerwiz.com/roberto/d...fects_list.htm for dhtml stuff
•
•
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation:
Rep Power: 12
Solved Threads: 1
•
•
•
•
Originally Posted by b0x
use this html code
<blink>_</blink>
_.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
- Curse that Blinking Cursor in the top left corner! (Troubleshooting Dead Machines)
- Dead acer aspire 1711 blinking cursor no boot (Troubleshooting Dead Machines)
- Did My computer break? (Troubleshooting Dead Machines)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: HTML Complete
- Next Thread: Problems creating a DHTML menu script with a stylish dropdown menu



Linear Mode