Jump to content

irkevin

Members
  • Posts

    295
  • Joined

  • Last visited

Posts posted by irkevin

  1. I tried this but i doesn't even list something..

     

     

    <?php
    
    // define the path as relative
    
    $path = "./manga/";
    
    // using the opendir function
    
    $dir_handle = @opendir($path) or die("Unable to open $path");
    
    echo "<select id='choose' onchange='selectManga()'>";
    echo "<option>Choose a manga</option>";
    // running the while loop
    	while ($file = readdir($dir_handle))
    	{
    
    		if($file == '.' || $file == '..')
    		{
    			//
    		}
    		else
    		{	
    			echo '<option value="'.$path.$file.'" name="'.$file.'">'.$file.'</option>';
    			$your_file .= $path.$file.'/';
    		}
    
    	}
    
    	echo "</select>";
    
    
    
    closedir($dir_handle);
    
    $chapter = $your_file;
    
    $chapter_handle = @opendir($chapter) or die("Unable to open $chapter");
    
    //echo "<select id='choose_chap' onchange='selectChap()'>";
    //echo "<option>Choose a Chapter</option>";
    
    while ($chapter_file = readdir($chapter_handle))
    {
    	echo $chapter_file;	
    }
    //echo "</select>";
    closedir($chapter_handle);
    ?>
    

     

    Any ideas guys?

  2. Hi,

     

    basically I have one folder[A] with several folders in it.. and in those several folders i have some files..

     

    So what i want is, have a drop down which list all folders in folder[A].... Luckily for me I've been able to do this..

     

    Now, once i select a folder in the dropdown, i want another dropdown to appear with the files in this folder.. Hope that makes sense.. Ask me, i'll elaborate.. here is the code i have so far

     

    <?php
    
    // define the path as relative
    
    $path = "./manga/";
    
    // using the opendir function
    
    $dir_handle = @opendir($path) or die("Unable to open $path");
    
    echo "<select id='choose' onchange='selectManga()'>";
    echo "<option>Choose a manga</option>";
    // running the while loop
    	while ($file = readdir($dir_handle))
    	{
    
    		if($file == '.' || $file == '..')
    		{
    			//
    		}
    		else
    		{	
    
    			echo '<option value="'.$path.$file.'" name="'.$file.'">'.$file.'</option>';
    			$your_file = 'manga/'.$file;
    		}
    
    
    	}
    
    	echo "</select>";
    
    
    
    closedir($dir_handle);
    
    ?>
    

     

    Well now i need some help guys :)

  3. function getB()
    {
    	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
    	{ //test for MSIE x.x;
    		var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
    		if (ieversion>=8 || ieversion>=7 || ieversion>=6 || ieversion>=5)
    		{
    			t1 = new Tween(document.getElementById('showIT').style,'height',Tween.strongEaseOut,0,300,2);
    			t2 = new ColorTween(document.getElementById('showIT').style,'backgroundColor',Tween.strongEaseIn,'E8E8E8','000000',1)
    			t1.start();
    			t2.start();
    
    			t1.onMotionFinished = function()
    			{
    				var show = document.getElementById('showText');
    				show.innerHTML = "<b>MESSAGE FROM MU-ANIME STAFF</b><br /><br /><b>We've noticed that you're using Internet Explorer to surf the website. Well, Internet Explorer is not good. Believe us.<br /><br /> We recommend you using the great Mozilla Firefox to surf Mu-anime. With Mozilla you can surf peacefully and<br /> experience the website at 100%... also your life won't be a mess with IE. Trust Us.</b><br /><br /><img src='images/ff.png' /><br /><br /><a href='http://www.mozilla.com/firefox/' target='_blank' class='moz'>GET MOZILLA FIREFOX</a>    <a href='#' onclick='goOut()' class='moz'>NO I'M FINE THANKS</a><br /><br /><a href='#' onclick='goOut()' class='moz'>Close this notice</a><br /><br />";
    			}
    		}
    	}
    	else
    	 document.write("n/a")
    }
    
    <body onload="getB();">
    

     

    basically, it checks to see if the user is using IE, if so, it display a message.. is there something else to use instead of 'onload'?

     

  4. Is this possible..

     

    i have a function which is in the head section,, then i call it with

     

    <body onload="myFunc();">

     

    the problem is, i want this function to run only once.. sadly, when the user click a link, the function keeps running on and on. how to prevent this?

  5. recording voice with amfphp?

     

    Never heard of amfphp able to do that.. i might be wrong.. I've been using amfphp with flash since it helps to output data from Mysql to Flash...

     

    Are you going to use flash to do the voice recording? If so. visit gotoandlearn.com

     

    This is not a section for flash :)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.