Super Web Mart - Discount Coupons & Deals - Discount Promos, Coupon Codes, Discount deals and web site reviews
 

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Solushunz

Pages: 1 [2]
16
HTML & Website Design / Add Sum by javascript
« on: August 09, 2011, 11:25:09 PM »
this is for sum the two number, i have select from a website, did not find where to put it

on my website.

Code: [Select]
<SCRIPT>
function sumDigits(num) {
     var i, sum = 0;                  // can declare two variables at once

     for (i = 1; i <= num; i++) {
             sum += i;              // add each number to sum (ie, 1 + 2 + ...+ num)
     }
     alert("The sum of the digits from 1 to "+ num + " is:\n\n\t " + sum);
}

</SCRIPT>

<BODY>

Looping Functions - Calculate the sum of the digits.

<FORM NAME="SumNums">
     The sum of the digits from 1 to:
     <INPUT TYPE="text" NAME="charNum">
     <INPUT TYPE="button" VALUE="Calculate"
       onClick="sumDigits(SumNums.charNum.value)">
</FORM>

17
HTML & Website Design / On pageload redirect by JavaScript
« on: August 08, 2011, 11:21:41 PM »
I use this code to redirect on page load, is there any problem because this is not

working properly

Code: [Select]
<script language="JavaScript">
var sTargetURL = "redirectiontarget.htm";
function doRedirect()
{
    setTimeout( "window.location.href =url, 2*1000 );
}
</script>
<script language="JavaScript1.1">
function doRedirect()
{
    window.location.replace( sTargetURL );
}
doRedirect();
</script>
<body onload="doRedirect()">
<p>Loading <a href="redirectiontarget.htm">redirection target</a></p>
<p>In approx. 2 seconds the redirection target page should load.<br>
If it doesn't please select the link above.</p>

18
HTML & Website Design / Php date create code
« on: July 25, 2011, 10:57:58 PM »
i am new in php but i have created the below code on my webpage to show the date, but its not working.
i want to see a simple format of date and time.want to know why?


Code: [Select]
<?php
echo date("l");
echo 
date('l jS \of F Y h:i:s A');
echo 
"July 1, 2000 is on a " date("l"mktime(000712000));
echo 
date("DATE");
echo 
date(DATE_ATOMmktime(000712000));
?>

19
HTML & Website Design / Send a request on my server
« on: July 18, 2011, 12:16:41 AM »
I want to send a request on my server via my website,
thats why used this code, not working. please suggest me.

Code: [Select]
xmlhttp.open("GET","ajax_info.txt",true);
xmlhttp.send("SET");

20
HTML & Website Design / php change key function
« on: July 17, 2011, 02:59:44 AM »
I use this code to change key funtion on my website. its not working.

Code: [Select]
<?php
$input_array
("FirSt" => 1"SecOnd" => 4);
print_r(array_change_key_case($input_arrayCASE_UPPER));
?>

What should i do on my website to activate this function.

21
HTML & Website Design / redirect to another page
« on: July 07, 2011, 12:45:36 AM »
I have created this code to redirect another page, but its not working.
please tell if there is any correction.
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "http://www.new-url.com/"
%>

22
HTML & Website Design / PHP date time.
« on: June 25, 2011, 12:52:18 AM »
i am new in php but i have created the below code on my webpage to show the date, but its not working. i want to see a simple format of date and time.want to know why?

<?php
date_default_timezone_set('UTC');
echo date("l");
echo date('l jS \of F Y h:i:s A');
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
echo date("DATE");
echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));
?>



Pages: 1 [2]