User Profile

Collapse

Profile Sidebar

Collapse
Lagon666
Lagon666
Last Activity: Jul 1 '10, 06:08 PM
Joined: Jun 29 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Lagon666
    replied to Add whitespace between letters
    in PHP
    Thanks
    preg_split("//", $text) works too. But it might be slow.
    See more | Go to post

    Leave a comment:


  • Lagon666
    started a topic Add whitespace between letters
    in PHP

    Add whitespace between letters

    Does PHP has a function to add whitespace between letters?

    Convert this "abc" to "a b c"?
    See more | Go to post

  • Lagon666
    started a topic Create image in image
    in PHP

    Create image in image

    How can i put a created image in the other base image.

    For example i create an image for "X" character using imagestring() and the same for "Y" character and now i want put these two images in a base image. How?
    See more | Go to post
    Last edited by Atli; Mar 5 '10, 09:00 PM. Reason: Do not make the ENTIRE post bold!

  • Lagon666
    started a topic Problem with EVAL
    in PHP

    Problem with EVAL

    Hi
    I have a code that when i use it, it crashes. May you suggest a solution for this code EXCEPT replaceing(characters such as quotation, double quotation, slash and back slash) and decoding the input?

    Code:
    $input = 'inputs " text';
    $output = eval('$text = "'.$input.'"; return $text;')
    See more | Go to post

  • Any idea about this?
    See more | Go to post

    Leave a comment:


  • Lagon666
    started a topic How to set RewriteBase to parent directory?

    How to set RewriteBase to parent directory?

    I have a .htaccess file in the directory called "test" in my "public_htm l"

    I want to set an option for htaccess file that when i browse "test" directory, it include the "index.php" file that exists in "public_htm l" directory.

    I think it may be like this but it didnt work.
    Code:
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase ../
    ...
    See more | Go to post

  • Lagon666
    replied to An onclick handler like jQuery
    Great, Thanks man!!!
    See more | Go to post

    Leave a comment:


  • Lagon666
    replied to An onclick handler like jQuery
    Well
    Can you aid me to know more about this Event Handlers. How can i create something this?
    See more | Go to post

    Leave a comment:


  • Lagon666
    replied to An onclick handler like jQuery
    Thanks Dormilich

    But if you had Firebug installed on Firefox you can see ondemand edits in page source. (by using Inspect Element)

    if you run this code it will add in source coder:
    Code:
    document.getElementById("my_element").onclick = 'function(){ alert("Hello!"); }';
    But when i use jQuery it doesn't add anything to page souce.
    See more | Go to post

    Leave a comment:


  • Lagon666
    started a topic An onclick handler like jQuery

    An onclick handler like jQuery

    In jQuery when I add onclick attribute for an element it doesn't add this attribute, but it works. So how does it works?
    See more | Go to post

  • Lagon666
    started a topic Making floated element alignments to center

    Making floated element alignments to center

    Is it possible to change #wrapper's inner elements alignments to center of page? I think its possible by using TABLE, but what about DIV?
    Code:
    <style>
    #left {
    	background: red;
    	width: 100px;
    	float: left;
    }
    
    #center {
    	background: green;
    	width: 200px;
    	float: left;
    }
    
    #right {
    	background: blue;
    	width: 100px;
    	float:
    ...
    See more | Go to post

  • Lagon666
    started a topic Stick to left

    Stick to left

    Hi

    How can i stick tabs to left. Now it has 40px distance to left.

    Code:
    <style>
    #Content {
    			background-color: #fafafa;
    			border: 1px solid #a2b6cb;
    			padding: 10px;
    			margin-top: -13px;
    		}
    		
    UL#Tabs {
    			font-family: Verdana, Arial;
    			font-size: 12px;
    			font-weight: bold;
    			list-style-type: none;
    			padding-bottom:
    ...
    See more | Go to post

  • Lagon666
    replied to Convert getdate() to YYYY/MM/DD?
    in PHP
    Thank you

    But how can i convert timestamp (seconds since unix epoch) to date?
    (Converting a number to date)
    See more | Go to post

    Leave a comment:


  • Lagon666
    started a topic Convert getdate() to YYYY/MM/DD?
    in PHP

    Convert getdate() to YYYY/MM/DD?

    Is any solution to convert "1055901520 " to yyyy/mm/dd:

    Code:
    $date = getdate();
    print $date[0]; // return 1055901520
    See more | Go to post

  • Set child element background same as father element background

    How can i set the #contain div's background same as #wrapper background? (Child element background same as father elemenet background).
    This source works in Firefox but how can i fix it in IE (IE6)?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    ...
    See more | Go to post

  • Lagon666
    started a topic Get running object name

    Get running object name

    Get running object name

    Hi
    Is it possible to get running object name using a command that defined in same object?


    Code:
    <script>
    var test = function()
    {
    	this.find = function()
    	{
    			alert('How can i know that this object is running as "a" variable?');
    	}
    }
    </script>
    
    <script>
    var a = new test();
    ...
    See more | Go to post

  • Lagon666
    started a topic Underline before variable name

    Underline before variable name

    What is the difference between these?
    Code:
    var text = 'text';
    
    var _text = 'text';
    See more | Go to post

  • Thanks

    But is it possible to return changed value (hi) using another object defining ('b' object), but not using 'a' object?
    Something like last line.

    Code:
    function test()
    {
    this.data = 'hello';
    this.change = function()
    {
    this.data = 'hi';
    }
    }
    
    var a = new test();
    alert(a.data); // will return hello
    a.change();
    alert(a.data); // will
    ...
    See more | Go to post

    Leave a comment:


  • Lagon666
    started a topic Changing and value of variable in function

    Changing and value of variable in function

    How can i change the value of a variant that defined in a function for ever?

    Code:
    function test()
    {
    this.data = 'hello';
    }
    
    function change()
    {
    var a = new test();
    a.data = 'hi';
    alert(a.data);
    }
    
    change(); // return hi
    
    var b = new test();
    alert(b.data); // return hello
    Is any solution for return the new...
    See more | Go to post

  • Getting CSS containt using JS from <style> tag

    How can i get css contains of an element.
    When i use alert(document. getElementById( 'mydiv').style. opacity) it will return empty.

    Code:
    <style>
    #mydiv{
    background:#000000;
    opacity:0.4;
    }
    </style>
    
    <div id="mydiv">inner</div>
    Code:
    <script>
    function getOpacity(){
    alert(document.getElementById('mydiv').style.opacity);
    ...
    See more | Go to post
No activity results to display
Show More
Working...