|
Dear Ahmed,
Please describe what you want in detail.
Thanks
|
|
|
|
|
Dear Yusuf
There is a column for news in the website that i am working on, in the past i used to use marquee for news or sliding news but now i want to make it alittle cool and attractive when i searched i found out that fading is fair to have in my website that automatically it disappear and after short time it appear
i found out some codes but they were not working properly.
it will be better to include links that when one message fade in it should be link to a page and the same for others.
if you dont undrestand wht do i mean, plz check here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3065&lngWId=2
Thanks
|
|
|
|
|
try jquery or similar frameworks - easier than making your own scripts.
|
|
|
|
|
Hi,
i have an ocx file in webserver and i included it in my html page ..
and when client requests for that html the ocx gets installed with his permission but the issue it"s getting successfully installed on Admin machine..but in non-admin machine even the message box that prompts to install ocx is not displaying.....is there any limitation for non-admin...
pls help me out...
|
|
|
|
|
|
I have an Internet Radio application based on c#, and I want to publish it using UDDI.
How can I do it?
thanks for any help I don't know where to begin...
|
|
|
|
|
|
I want to use a script on my website that scores a multiple choice test, and what I have works pretty well. Before I use this script I want to make sure I understand everything it's doing. I understand most of what is happening, but I don't understand this particular loop:
for (i = 0; i < numberOfQuestions; i++) {
currentElt = i * numberOfChoices;
for (j = 0; j < numberOfChoices; j++) {
currentSelection = form.elements[currentElt + j];
if (currentSelection.checked) {
if (currentSelection.value == correctAnswers[i]) {
numberCorrect++;
break;
}
}
}
}
I understand that the first for loop is running through each question, but what is currentElt and why is it equal to the question times the number of answers? What is the second for loop doing with the numberOfChoices variable. The full script is below:
<script type="text/javascript">
var numberOfQuestions = 10;
var numberOfChoices = 4;
var correctAnswers = new Array(10);
correctAnswers = ["a", "b", "b", "a", "d", "a", "b", "b", "a", "c"];
function scoreQuiz(form) {
if (outOfTime == true) {
window.alert("You have exceeded the time limit of the test." + "\n" + "Please try again.");
return true;
}
var numberCorrect = 0;
var currentElt;
var currentSelection;
for (i = 0; i < numberOfQuestions; i++) {
currentElt = i * numberOfChoices;
for (j = 0; j < numberOfChoices; j++) {
currentSelection = form.elements[currentElt + j];
if (currentSelection.checked) {
if (currentSelection.value == correctAnswers[i]) {
numberCorrect++;
break;
}
}
}
}
form.correct.value = numberCorrect;
form.percentage.value = ((numberCorrect / numberOfQuestions) * 100) + "%";
}
var remainingTime = 600000;
var outOfTime = false;
function timeLeft() {
if (remainingTime <= 0) {
outOfTime = true;
}
else {
setTimeout("timeLeft()", (remainingTime));
remainingTime -= 1;
}
}
</script>
If anyone can help me understand this, or show me a better (simpler?) method of achieving the same thing I would greatly appreciate it.
|
|
|
|
|
dude,
your code is pretty wonky,
try this out to make a quiz
http://www.cj-design.com/products/free_downloads/javascript/cjmultiplechoicequiz[^]
your time calculation will never work since it is declared at the end of the function.
cullentElt is "current Element"
you are navigating to all the controls in your form and cheking one by one if they are checked or nor, if they are they shall be matched with the correct answer.
i would rather suggest you to use event, for change in option, calculate the score at that time itself,
it will make your code hardly 5-10 line.
read about "events" in javascript.
|
|
|
|
|
Thanks for the help. I know that timer isn't working; I will probably fix it today. Thanks again.
|
|
|
|
|
hello,
I am trying to develop a project using smart card.
I am using SCardX_easy activex control in my webpage to extract info from my smart card.
what i recieve in DataBuffer is a string of hex values separated by a white space and without a leading zero.
for example
ReceivedDataBuffer = "5B 50 0A 3E 5C 77 D8" and so on.
now i need to convert this to a meaningful string
say "test"
how do i do that.
this is what i am currently doing:
------------------------------------------
var data = new Array();
data = ReceivedDataBuffer.split("0A");
for (i=0; i<data.length;> {
AddSubLine(data[i]);
}
--------------------------------------------
but instead of the data[i] containing hex i need string.
"0A" is the newline character in hex
i intend to separate data using newline as data length is variable in nature which is being stored in the card.
thanks
also any suggestions regarding my approach would be appreciated as i am basically a c programmer and have been taked javascript.
i have gone through the basics but am stuck
|
|
|
|
|
what's wrong with Myeclipse7(all in one)???too slow,always stuck when I open a file
Undeniable:More information,more abilities,more energies,more time!
http://www.blogjava.net/tidelgl
|
|
|
|
|
I think you are in the wrong place...
|
|
|
|
|
The Post you have submitted has three Critical Errors. Please check the log for errors.
LOG:
<error 6765=""> Not Enough information br mode="hold" /><error 8765=""> Wrong Forum br mode="hold" /><error 7876=""> Try Eclipse Website br mode="hold" />
SUGGESTIONS:
<suggestion 0001=""> Try Google br mode="hold" />
End of post.
|
|
|
|
|
Hi,
I was unable to login in my help-desk intranet site eventhough i have supplied correct password..
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Pls help me out...
|
|
|
|
|
Are you sure? Did you contact the person in charge (who i really hope is not you)?
|
|
|
|
|
There is nothing we can help you with this issue. You need to contact the system administrator of your help desk intranet site
|
|
|
|
|
Hi all,
I have HTML code like: "". how can I get the final local path that this web handler generated or other methods to get a reference to the final image in C#?
Thanks,
|
|
|
|
|
I like the article submission system on CodeProject, and I think it would be great for me to develop a similar system for a different purpose.
Being the lazy developer that I am, I was wondering if there's already some "article submission ASP.NET project" templates out there with 90% of the functionality there, allowing me to tweak it rather than build it from scratch. I didn't find any with my searches of open source projects, but if anyone here knows of such a template, I would greatly appreciate it.
|
|
|
|
|
jesarg wrote: Being the lazy developer that I am, I was wondering if there's already some "article submission ASP.NET project" templates out there with 90% of the functionality there, allowing me to tweak it rather than build it from scratch. I didn't find any with my searches of open source projects, but if anyone here knows of such a template, I would greatly appreciate it.
How about your write the code and get nice article submitted here.
|
|
|
|
|
Hi all
I am using an “Ajax hover menu “ with a data list control to display a panel and it is working fine, but there is an alert telling the user that the script is running too fast and it will slow the page can anyone help please.
Mohammad Al Hoss
Development To Me Is A Pleasure more than a Job
|
|
|
|
|
Mohammad Al Hoss wrote: the script is running too fast and it will slow the page
what do you mean by running too fast? I have seen browser informational dialog that displays notifying the user script is running slow, but not too fast. Running too fast would be very good.
|
|
|
|
|
Hello everyone,
My question has to do with CSS.
I have this very simplistic website www.iofreaks.com , and I am trying to apply CSS’s to it. So that way further down the road it will be easier to manage.
Now my first question is this:
Q.) When using CSS’s, do you create more than one CSS for the <head> ,<body> and <table>’s?
The reason I ask this, is because I thought that using CSS’s intention is to enable to you alter large amounts of information from “ONE” or very few documents?
My next question is this:
Q.) When specifying the following:
table.one {table-layout:fixed}
How do you relate to “ table.one ” in your index.html? I know there has to be a way to link them together to apply what you have in the CSS document, but how do you do this? Do you use in index.html to relate to the CSS document? I am very confused on this.
I would appreciate any help. I will also include what I have in my css1.css file at the bottom of this page.
V/R
Rob
@charset "utf-8";
/* CSS Document */
body {background-color:#D5D5D5}
table.one {table-layout:fixed}
<table class="one" width="510" height="166" border="1" align="center" cellpadding="0"> </table></table></table></body></head>
modified on Thursday, April 23, 2009 5:38 PM
|
|
|
|
|
|
I have an external style sheet I am using in an html page. I'm using vs2008 to do some development in. I have created a body element in my css page. The link for the style sheet is in the header of the html page like it should be but I am not seeing the css effects appearing for my body or p tags, what am I doing wrong?
I noticed that if I define the following in my css page they are not applied to my html page.
<title>
css file:
body
{
font-size: 10px;
color: #222222;
line-height: 1;
}
p
{
line-height:1.2em;
margin ;
}
div.wrap
{
background-color:#FFFFFF;
}
The div.wrap gets executed but the body and p elements will not show properly. What am I missing here?
Thanks,
DNM
|
|
|
|