Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 11999 | Replies: 14
![]() |
•
•
Join Date: Nov 2003
Location: New Delhi, India
Posts: 95
Reputation:
Rep Power: 7
Solved Threads: 1
•
•
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation:
Rep Power: 12
Solved Threads: 4
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: 4
•
•
•
•
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)






Linear Mode