Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. Thank you fenway I'll look into that for more detail that might come in handy some day
  2. you can use a iframe or a div with a scrollbar the iframe is probably the easiest way. all you have to do is change the iframe source on a click event. <script> function changeContent(){ document.getElementById('content').src="http://www.phpfreaks.com"; } </script> <button onclick="changeContent()">change iframe</button> <iframe id="content" src="http://www.google.com"> </iframe> however this method with make the back button useless there are work arounds but i havent looked into that yet
  3. agreed with fenway you can use blob type to store files in the database but storing just the URL of the image is faster and less troublesome when you want to display a gallery or something like that
  4. I currently are using the second insert ints not a huge amount of insert querries max 10 but can you explain a bit more about
  5. where is the edit button when you need it but anyway insert2 has to be like this for($i=0;$i<3;$i++){ $sql ="INSERT INTO images(image_name,gallery_id) VALUES ('image".$i."',".$i.");"; mysql_query($sql)or die(mysql_error()) ; }
  6. It kinda looks like your trying to make something similar to google suggest. Is this true. If so there are a couple of mootools scripts to be found that will do exactly what you want.
  7. I was wondering if there is a big difference in performance with multiple insert queries in one and insert queries in a loop. for example insert 1 $sql ="INSERT INTO images(image_name,gallery_id) VALUES ('image1',1), ('image2',2), ('image3',3);"; mysql_query($sql)or die(mysql_error()) ; insert 2 for($i=0;$i<3;$i++){ $sql ="INSERT INTO images(image_name,gallery_id) VALUES ('image".$i."',".$i."), ('image".$i."',".$i."), ('image".$i."',".$i.");"; mysql_query($sql)or die(mysql_error()) ; } is the second way much worse or doesnt it really which way to choose? notice that these examples are not ment to be working and only for comparison purposes
  8. Tableless designs with css is the way to go these days. I personally NEVER use the design view in dreamweaver always the code display just to be sure to produce clean code. Maybe you want to take a look at some free css frameworks that are available online to ease your designs. It isn't the solution to your problem since good designing cost time but it will make it a whole lot of easier
  9. Mootools is a javascript framework that makes javascripting a hell lot easier and especially when it's about graphical user interfaces. It's similar to prototype but better. check out the website and check the demos and the documentation about mootools to learn more http://mootools.net/
  10. I have redone that thing using mootools. It gives cleaner codes and is easier to modify what's needed in your head section <script src="mootools.v1.11.js"></script> <style> #mousemove{ width: 500px; height: 358px; border: 1px solid #000; overflow-x: hidden; overflow-y: hidden; margin: 0 auto; } .inside { width: 2450px; height: 358px; } .scroll_image{ padding-left:0px; margin-left:0px; margin-right:0px; padding-right:0px; border:0px; float:left; height: 358px; width: 400px; } </style> the slider itself <div id="mousemove"> <div class="inside"> <img class="scroll_image" src="http://www.onlinecooking.net/news/NewsImages/chicken.JPG" /> <img class="scroll_image" src="http://www.onlinecooking.net/news/NewsImages/chicken.JPG" /> <img class="scroll_image" src="http://www.onlinecooking.net/news/NewsImages/chicken.JPG" /> <img class="scroll_image" src="http://www.onlinecooking.net/news/NewsImages/chicken.JPG" /> <img class="scroll_image" src="http://www.onlinecooking.net/news/NewsImages/chicken.JPG" /> <img class="scroll_image" src="http://www.onlinecooking.net/news/NewsImages/chicken.JPG" /> </div> </div> <script> var scroll1 = new Scroller('mousemove', {area: 100, velocity: 1}); // Mousemove $('mousemove').addEvent('mouseenter', scroll1.start.bind(scroll1)); $('mousemove').addEvent('mouseleave', scroll1.stop.bind(scroll1)); </script>
  11. What do you mean can you give some plain html code to show what you mean with "listbox"
  12. luckily there is no way to get rid of the closing X and if there was a way thank god for ctrl+f4
  13. i see your using lists so this one might work not sure since i don't have ie7 http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm
  14. I think you need to give more detail I don't have clue what you mean
  15. Dude that script is friggin' awesome finally a way to play mp3's without flash or MS media player I LOVE IT!!!
  16. you could use java too if you use JSP reading your subject because Java!=JavaScript
  17. search and you will find it anyway this is one i use http://www.jeroenwijering.com/?item=Flash_MP3_Player
  18. I suggest you use flash for streaming media there are plenty of free players to download for doing that sort of thing and its becomming easier every day to build a media player with flash. You will also notice that most major sites stop using windows media player for streaming media because MS mediaplayer only runs on windows and flash runs on almost everything
  19. look for ajax tutorials there are plenty online or just post your complete ajax script.
  20. why not just use the onclick in the flash file?
  21. thats because that's the way you include a file in ASP and you are probably just using the .html extension you can't really include a file in html files unless you use Iframes
  22. thats why i use links inside my forms so that the form doesn't submit when click on it. you could use a javascript work around but using link tags is easier
  23. what about simply using images inside links or if you want navigation buttons style the list with css
  24. sorry but what exactly do you want I don't have a clue on what you mean
  25. ok here is how to do it I made a little example for you. You need the mootools js file download it on the site place this in head section <script src="mootools.v1.11.js"></script> <script> var counter=0; function refreshContent(){ //adds on to counter variable counter++; //this referes to the div with the id "content" $('content').setText(counter); } </script> and place this in your body <div id="content"></div> <script> //the function refreshContent is now periodical executed every 1000ms or every second refreshContent.periodical(1000); </script> try out my example and read the comment. now its just to place some ajax code in the function refresh content. I recommend you use mootools too since its a lot easier to write an ajax function with it here is a mootools ajax example var url = "http://demos.mootools.net/demos/Ajax/lipsum.html"; /** * The simple way for an Ajax request, use onRequest/onComplete/onFailure * to do add your own Ajax depended code. */ new Ajax(url, { method: 'get', update: $('log') }).request();
×
×
  • 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.