Jump to content

garevn

Members
  • Posts

    92
  • Joined

  • Last visited

Everything posted by garevn

  1. I submit this select list through a form, If the chosen number exist then I print an error but the selected value resets. Can I somehow make it remember the selected value?var myDate = new Date();var year = myDate.getFullYear();for(var i = 4; i < 16; i++){document.write('<option value="'+i+'">'+i+'</option>');}When I use Input I use this and it works fine but now I am a bit confused. <?php if (isset($_POST['name'])) echo 'value="'.$_POST['name'].'"';?>
  2. I submit this select list through a form, If the chosen number exist then I print an error but the selected value resets. Can I somehow make it remember the selected value? var myDate = new Date();var year = myDate.getFullYear();for(var i = 4; i < 16; i++){document.write('<option value="'+i+'">'+i+'</option>');} When I use Input I use this and it works fine but now I am a bit confused. <?php if (isset($_POST['name'])) echo 'value="'.$_POST['name'].'"';?>
  3. At the moment i succeded the rotation images background. And the fadeIn-fadeOut at the content of the body... But i need to fadeIn-FadeOut the background images not the content of body.. I am spaced out.. <script language="JavaScript"> var john=['0.jpg','1.jpg','2.jpg'];for (var img,pic=0;pic<john.length;pic++){img=john[pic];john[pic]=new Image();john[pic].src=img;}var bac=0;function ImageRotate(){bac=++bac%john.length;document.getElementById('name').style.backgroundImage='url('+john[bac].src+')';setTimeout(function(){ImageRotate();},5000);$('body').fadeOut("slow");$('body').fadeIn("slow");}</script></head><body id="name" onLoad="ImageRotate();">
  4. I dont know how to fade in through this.. I just need to simple fade in the next coming image. <script language="JavaScript"> var john=['0.jpg','1.jpg','2.jpg'];for (var img,pic=0;pic<john.length;pic++){img=john[pic];john[pic]=new Image();john[pic].src=img;}var bac=0,to=null;function ImageRotate(){bac=++bac%john.length;document.getElementById('name').style.backgroundImage='url('+john[bac].src+')';to=setTimeout(function(){ ImageRotate(); },2000);}</script></head><body id="name" onLoad="ImageRotate();"></body></html>
  5. garevn

    dynamic copyright

    I did an if-else statement tnx though!
  6. garevn

    dynamic copyright

    I am using this code and the result is "© Copyright 2013 - 2013". I want if possible if the current year is the same with the copyright year to display only one. for example the display will be "© Copyright 2013". <?php$time = time () ;$year= date("Y",$time);echo "© Copyright 2013 - " . $year;?>
  7. First of all i wanna thank u justsomeguy because the last years since my first post u are always here and u are trying to help me in whatever problems i have. Referring to the post i tried a lot of things like trying several "position"-"display" options but nothing worked. suddenly i deleted tabindex and worked!!<div id="Accordion1" class="Accordion" tabindex="0">to<div id="Accordion1" class="Accordion">I have no idea why that was the problem. Even when i changed the value to "1" didnt work.
  8. When i click to open a Spry Accordion content using IE, for some milliseconds the whole accordion div is like flash/blinks at the top of the page and then resets to his normal position.I read to add display:none; or display:table; but it doesnt work.Anyone has any idea how to fix that?
  9. This is my current code, but i want a mouseover and mouseout behaviour to a text with no "read more" "read less" "images" ets.For exampleLine one....Line two....when mouseover in the table/div with the text, display:Line one....Line two....Line three...Line four...when mouseout display back two lines <script type="text/javascript">function showMoreOrLess(thisObj,bonusContent){ var caption = thisObj.innerHTML; //alert(caption); if ( caption == "Read more" ) { document.getElementById(bonusContent).style.display = "inline"; thisObj.innerHTML = "Read less"; } else { document.getElementById(bonusContent).style.display = "none"; thisObj.innerHTML = "Read more"; }}</script></head><body><div id="restOfArticle" style="display:none">blah blah</div><a onmouseover="showMoreOrLess(this,'restOfArticle');">Read more</a></body>
  10. I want somehow to expand and collapse a text to a spesific area.For example lets say i have a text of 5 rows and i want to show only 2 like: 1row2row...read moreif u press "read more" then:1row2row3row4row5row...read less Is there a way to do that?
  11. ok it seems like the easyest way, but how i update the table after the log in... i tried to update and log in with the same form but its not possible...!
  12. Lets say i have 10 users in my database.I want to display 2 dynamic tables, one with the names from online users and one with the names from offline one..Any suggestion i am a bit confused
  13. garevn

    hard drive folder

    yes i have pics. An other guy helped me and i tried this <?php$f = glob("c:/Program Files (x86)/*.*");foreach ($f as $file)echo "$file \n";?> It works fine but i was thinking about results in items i may click on them, Is there any chance?
  14. garevn

    hard drive folder

    i tried both codes but the browser load and load all time and nothing happen.. <?php//Open images directory$dir = opendir("pics");//List files in images directorywhile (($file = readdir($dir)) !== false) { echo "filename: " . $file . "<br />"; }closedir($dir);?>
  15. garevn

    hard drive folder

    Hello i want to display in my local site a hard drive path like"C:\Program Files (x86)"Is there any chance?
  16. iFRAME HARD DRIVE PATH Is there any chance to display a hard drive folder through iframe in my site?I am just talking for local use only.for example:page 1 <a href="MY HARD DRIVE FILE PATH" target="iframe_b">FILE NAME</a> page 2 <iframe name="iframe_b" frameborder="0"></iframe>
  17. tnx but it doesnt appear at all now!! i suppose i will try something else
  18. Is there any chance to change the opacity of this player? i have no idea... <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script><div id="player-holder"></div><script type="text/javascript">var options = {};options.playlistXmlPath = "player/playlist/playlist.xml";options.firstColor = "00FFFF";options.secondColor = "ee1d24";options.backColor = "000000";options.highlightAlpha = "100";options.fontSize = "large";options.loopPlaylist = "true";options.shufflePlaylist = "true";options.autoLoad = "true";var params = {};params.allowScriptAccess = "always";swfobject.embedSWF("player/swf/OriginalMusicPlayerPlaylist.swf", "player-holder", "250", "250", "9.0.0","expressInstall.swf", options, params, {});</script> i tried to use a table-div with the opacity i want but it doesnt work..
  19. A friend suggest to use a simple frame but i am not sure if it will look like what i want, i will work on them i suppose
  20. hm ok thats an idea. but i am not sure if it is what i want. i was thinking that the player is like at the right up side and if the user pause it for example it wont restard at any case,If i use pop up and the user close it then he should refresh the page to find it again or something
  21. Hello i have a simple audio player like this <audio autoplay="autoplay" loop="loop" controls="controls" class="audio"><source src="/site/Music/song.mp3" type="audio/mp3"/></audio> And i dont want when the user switch pages the song restart or stop
×
×
  • Create New...