|
|
Use
<html>
<head>
<style>
.hint{color:blue;}
.real{color:black;}
</style>
<script type="text/javascript">
window.onload = onchange;
function foc(){
if(this.value.length==0 || this.className=="hint"){
this.value="";
document.getElementById('textbox1').className = 'real';
}
}
function blur(){
if(this.value.length==0){
document.getElementById('textbox1').className = 'hint';
this.value="Enter";
}
}
function onchange(){
var text = document.getElementById("textbox1");
text.onfocus = foc;
text.onblur = blur;
}
</script>
</head>
<body>
<input type="text" id="textbox1" class="hint" value="Enter"/>
</body>
</html>
|
|
|
|
|
Thtz great working and exactly i wanted to do...
But please can you explain how class changed....i was using this.className......
and u used document.getElementById("textbox1").className=......
Apparently both are same since the value of this is document.getElementById("textbox1").....
but in this way it's working.....how????
|
|
|
|
|
hello,
i need to develop websites regarding blogs using Joomla technology
But I'm not getting the proper component or tool to develop blog related websites.What component we require to develop .
plzz help
|
|
|
|
|
vinci007 wrote: i need to develop websites regarding blogs using Joomla technology
Maybe you should ask on the Joomla site.
|
|
|
|
|
I have never used Joomla, but these links might help you.
http://forum.joomla.org/viewtopic.php?t=121065
http://www.cheekygreenmonkey.com/Creating-A-Blog-Site-With-Joomla.html
|
|
|
|
|
|
Hi,
I want to create a digital signage system web based !
There should be something like a browser will download media files from the web server, save it onto client's machine and plays it in specific sequence.
Can a browser/client have access to download media files and save it to specific location using javascirpt/vbscript or any other way (no manual process it should be done automatically) and after that play those media files !
Thanks & Best Regards,
Divyesh Chapaneri
|
|
|
|
|
divyesh1432 wrote: Can a browser/client have access to download media files and save it to specific location using javascirpt/vbscript or any other way (no manual process it should be done automatically) and after that play those media files !
Nope.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
No Browser doesnt have access to file system.
What you can do is when you are making a playlist, store the ids in the browser cookie, and play them in browser based music player directly from the server based on the sequence made by the user.
This is just what esnips does.
|
|
|
|
|
hi,
You can try the above. additionally you can write a browser using browsers control in .net and you can use that for your purpose...
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
I think playing media files using flash players is the best way. You can also try out the recently introduced Silverlight players.
At least there should be a browser plugin involved to play a sound in browser.
|
|
|
|
|
I'm needing to convert some old code using document.all to use document.getElementById instead. I've been searching for the better part of an hour for an in-depth comparison of these two -- something more than "document.all is deprecated, don't use it". I need to know if document.all has any behavior that document.getElementById doesn't emulate. Are there any situations where document.all['text'] will not give the same results as document.getElementById('text')? Can anyone link me to a good article/post comparing these two?
|
|
|
|
|
http://www.mozilla.org/editor/ie2midas.html[^]
the thing to watch out for, in my humble opinion, is that document.all.element works with name as easily as id. If your code is old enough to use "all," it may be using "name", too
|
|
|
|
|
Dear All:
Today i was assigned a bug, that bug was when you use firefox and a javascript alert pops up. The title of the popup has the following " Alert " + the IP of the IIS which causes a huge security problem. How could i change the title obscure it any thing that would prevent it from showing information
|
|
|
|
|
No.. It wont be possible with normal alert ... You need to create custom alert for your site. You might either create an alert using Window.open or create custom html popup using div's.
|
|
|
|
|
How about using VBscript? what do you think??
|
|
|
|
|
No... VBScript doesnt work in Mozilla. Its only for IE.
So its also discarded... .sorry..
|
|
|
|
|
Thanks for the information i will go with one of your suggestions the moment i discuss them with the PM.
|
|
|
|
|
you are most welcome..
|
|
|
|
|
I have done a project. I hosted all my files but difficulties to add my database.
|
|
|
|
|
Can you make more clear?
why do you need to add database. Just create a connectionstring in web.config to connect to the database.
|
|
|
|
|
Actually I want to attach my database (named KoorasDatabase.mdf) in the server to host. I need to the procedure.
I am confused if all all my tables are needed to create again.
|
|
|
|
|
To attach a database use this script.
USE [master]
GO
CREATE DATABASE [KoorasDatabase] ON
( FILENAME = N’C:\Data\KoorasDatabase_Data.mdf’ ),
( FILENAME = N’C:\Data\KoorasDatabase_Log.ldf’ )
FOR ATTACH
GO
IF EXISTS ( SELECT name
FROM master.sys.databases sd
WHERE name = N’KoorasDatabase’
AND SUSER_SNAME(sd.owner_sid) = SUSER_SNAME() )
EXEC [KoorasDatabase].dbo.sp_changedbowner @loginame=N’sa’,
@map=false
GO
Just replace the Filepath with appropriate one.
|
|
|
|
|
Hello
I'm currently designing an intranet web project that will need to plot graphs (not charts)
Something like mxGraph, more precisely in this port sample or in database sample.
I'm not allowed to has a local copy of their script, so I can't use them.
Are there any good similar libraries out there, which is not too low level, and are allowed to be hosted locally?
Thanks in advanced 
|
|
|
|