cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
I understand what you mean. It's just that what you're asking for cannot be done with standard HTML. You need a scripting language such as DHTML to accomplish special effects on web pages. A blinking cursor is, indeed, a special effect ;)
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
Sure. Most web pages use HTML, hypertext markup language, to add formatting to standard text. For example, you can use tables, colors, bold/italic fonts, etc.
If you want to do anything beyond the scope of that, you need a scripting language such as DHTML or JavaScript, for example.
Dynamic Drive is the only site I know of that suppliies free DHTML code snippets. Unfortunately, I don't know the language myself.
If you could provide us with an example of where you've seen what you're asking for, I could help further. You mentioned you saw it here, at TechTalkForums? Perhaps you're referring to a blinking cursor inside a textbox where you type? (A blinking text I-beam inside a textbox is a standard Windows feature).
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
make an animated GIF and put it at end of each paragraph :)
jayant
Junior Poster in Training
95 posts since Nov 2003
Reputation Points: 46
Solved Threads: 1
use any good Image Editor program.
GIF Animator, PhotoShop (ImageReady) being the biggie/costly options but you can search for free ones also. They exist.
jayant
Junior Poster in Training
95 posts since Nov 2003
Reputation Points: 46
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>
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
use this html code
_
Does not work in Internet Explorer and AOL Browsers. I'm pretty sure its Netscape proprietary and I think it's deprecated as it is.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18