Jump to content

rexal

Members
  • Posts

    14
  • Joined

  • Last visited

rexal's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. recently i was developing website using dojo toolkit ..there is some missconf that i can`t solve it.some thing wrong with the result.can someone help me..here are the code for your refference <script language="JavaScript" type="text/javascript" src="dojo/dojo.js"></script><script language="JavaScript" type="text/javascript"> dojo.require("dojo.lfx.*"); dojo.require("dojo.lfx.extras"); dojo.require("dojo.event.*"); function wipeOut(elId){ dojo.lfx.wipeOut(elId, 300).play(); } function wipeIn(elId) { dojo.lfx.wipeIn(elId, 300).play(); } dojo.event.connect("after",window,"onload",hide); function hide() { wipeOut('testdiv') } </script><body><a href="Main.html" onMouseOver="dojo.lfx.html.wipeIn('testdiv', 200).play();" onMouseOut="dojo.lfx.html.wipeOut('testdiv', 200).play();" ><img src="images/watever.jpg" width="54" height="60" border="0"></a></div><div align="center"><div id="testdiv" style="border:0px solid blue; width:800px"> <img src="pic/tengah.jpg" width="800" height="263"></div><div></body>
  2. rexal

    help in polling

    pls help me with this code <?php $vote=$http_POST_VARS['vote'];if (!$db_conn = @mysql_connect('localhost','root','')){ echo'could not connect to db <br/>'; exit;}@mysql_select_db('poll');if (!empty($vote)){ $vote = addslashes($vote); $query = "update pool_results set num_votes = num_votes + 1 where candidate = '$vote'"; if(!($result =@mysql_query($query,$db_conn))){ echo' could not connect to db<br/>'; exit; }};$query = 'select* from poll_results';if(!($result =@mysql_query($query,$db_conn))){ echo' could not connect to db<br/>'; exit; }$num_candidates=mysql_num_rows($result);$total_votes=0;while ($row = mysql_fetch_object ($result)){$total_votes += $row->num_votes;}mysql_data_seek($result,0); putenv('GDFONTPATH=C:\WINNT\Fonts'); $width=500; $left_margin=50; $right_margin=50; $bar_height=40; $bar_spacing=$bar_height/2; $font='arial'; $title_size=16; $main_size=12; $small_size=12; $text_indent=10;$x=$left_margin+60;$y=50;$bar_unit=($width-($x+$right_margin))/100; $height = num_candidates*($bar_height+$bar_spacing)+50; $im = ImageCreate($width,$height); $white=ImageColorAllocate($im,255,255,255);$blue=ImageColorAllocate($im,0,64,128);$black=ImageColorAllocate($im,0,0,0);$pink=ImageColorAllocate($im,255,78,243); $text_color =$black; $percent_color=$black; $bg_color=$white; $line_color=$black; $bar_color=$blue; $number_color=$pink; ImageFilledRectangle($im,0,0,$width-1,$height-1,$bg_color); ImageRectangle($im,0,0,$width-1,$height-1,$line_color); $title='poll Results';$title_dimensions=ImageTTFBBox($title_size,0,$font,$title);$title_length = $title_dimensions[2]- $title_dimensions[0];$title_height=abs($title_dimensions[7]-$title_dimensions[1]);$title_above_line=abs($title_dimensions[7]);$title_x=($width-$title_length)/2;$title_y=($y-$title_height)/2 + $title_above_line;ImageTTFText($im,$title_size,0,$title_x,$title_y, $text_color,$font,$title); ImageLine($im,$x,$y-5,$x,$height-15,$line_color); while ($row = mysql_fetch_object($result)) { if($total_votes > 0) $percent = intval(round(($row->num_votes/$total_votes)*100)); else $percent = 0; ImageTTFText($im,$main_size,0,$width-30,$y+($bar_height/2), $percent_color,$font,$percent.'%'); if($total_votes > 0) $right_value = intval(round(($row->num_votes/$total_votes)*100)); else $right_value = 0; $bar_length = $x + ($right_value*$bar_unit);ImageFilledRectangle($im,$x,$y-2,$bar_length,$y+$bar_height,$bar_color); ImageTTFText($im,$main_size,0,$text_indent,$y+($bar_height/2), $text_color,$font,$row->candidate); ImageRectangle($im,$bar_lenght+1,$y-2, ($x+(100*$bar_unit)),$y+$bar_height,$line_color); ImageTTFText($im,$small_size,0,$x+(100*$bar_unit)-50,$y+($bar_height/2), $number_color,$font,$row->num_votes.'/'.$total_votes); $y=$y($bar_height+$bar_spacing); }header('content-type: image/png');ImagePng($im);ImageDestroy($im);?> keep Poping with this error line? -->Fatal error: Call to undefined function: imagecreate() in c:\apache\htdocs\poll\tmp2igcqydwzo.php on line 61<-- and 1 more question, what is UNIX?how to config it?
  3. rexal

    form mailer

    i need information about form mailer (information in code, refernce etc)
  4. i need code for scan image using javascript
  5. rexal

    new message

    how to generate the code in my web page??just put that code in the body tag??
  6. rexal

    help setting

    i`m using phptriad,could someone help me for setting up directory from.your help appreciated...http://localhost/index.htmlto http://localhost/mysite/index.html
  7. oh...i see thank you
  8. rexal

    new message

    how to view alert for new posted data??rexal
  9. rexal

    cookies

    how we can create cookies and read them in web pages using javascript ?? -sorry,my mistake-can anyone share the code wit me
  10. can we call url https:// and put it our website by using this code
  11. oh is see so it can`t be done.how about if we want to put outlook in our site??
  12. hihow to insert .exe file into html and set the size of it??
  13. how to insert .exe file into html and set the size of it??
  14. hi,can`t view message in outlook...help <a href=mailto:<? echo "$email";?>?subject=blabla&message=mymessage>
×
×
  • Create New...