Jump to content

sugafree

Members
  • Content Count

    50
  • Joined

  • Last visited

Everything posted by sugafree

  1. I want to create a main header where texts will bounce in, in 0.5s intervals and then at the same time it will all fade out, 1s interval again then new text will bounce in same intervals again and fade out. When it finished I want it to start from the beginning. I use animate.css, twitter-bootstrap and jquery. I have tried a few different ways, but so far I couldnt even get it to fade out after a short delay or if it fades out, it wont bounce in. http://erotikus-munka.co.uk/test/index2.html $( document ).ready(function() { $( '.main2' ).addClass( 'bt_visible animated fadeInDownBig'), $(
  2. ....just in case others run into the same problem. Use UI-router(unfortunetaly its not my handywork, but I think I got the picture now)... http://plnkr.co/edit/jnKQOvkE4nJinEQ5zhr6?p=preview
  3. Im trying to create a form, first element should be a <select> tag with a few options and each of them will dynamically bring up a different set of forms depending on what the user chooses. The idea is within the select tag there will be different categories like cars, properties etc.. first user only sees that and when chose, it will bring up a set of input fields that required for that category. Anyone got an idea what would be the best way to do it in angular?
  4. Thank you Foxy, best solution so far. However I still have 2 more major problems. Element and target is in the same wrapper div so when target is resized, it will force the element to a different position which really not looks good and how could I change the delay so the animation looks a bit slower?
  5. I want to create a div and set the opacity to 0 with css(background, color, border) so completely invisible and the whole thing will only work if js enabled. There is another div next to it, and want to use jquery to change the opacity to 1 and change it size. If possible with fadeIN fadeOut. So far i didnt get far, still couldnt even change the opacity, although a researched it. Also I tried mouseenter and mouseover, but no luck yet or to use .hover to create a new div and everyting, but than I need the rest of the page to stay where it is and a new div would change it.. $(document)
  6. Im trying to use jssor slider from github, but when i copy the code it wont work. For some reason the arrows on the left and right side in the main picture dont show up, even tho when you hover over it with your mouse it does work. Also the unselected thumbnail borders are not the right size. Can anyone help me? Also little loading gif wont show up on main big picture just as on thumbnails. I uploaded it to http://sugafreetest.hostoi.com The example what i want to do is http://www.jssor.com/demos/image-gallery.html Thanks
  7. Basically what I am trying to do is, first you enter a number, which will be the number of time the loop should run. When all details entered, it should print out like a payslip for all entries, name, wage, marital status etc..Now the problem is, when I enter example 2 for the loop(numWorkers) at the last round, it will come up with some error in the line of nameWorker[i] = input.next(); Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 20. Also got some problem with the wage obviously im trying to send a double to the wageCalc method, but just cant get it running. Tried p
  8. But what is angular JS than? I think it pulls out the actual content, example ad listings is made up of a pic, description and price, all this is stored in an external file if im right. So will prerendering sort out this issue, meaning google searchbots will see the full html with content? Also is there a way to automatically generate a simply html/css version of the website? Eg creating the same website using html and css only and some program-script or anything will pull the data from the angular site to insert it into the html version each time someone posts a new ad
  9. Hi, I hope this subject should be under javascript.. If you design a great website using angularJs, might sound great but what about search engines and visitors without js or whatever other stuff it needs. Could you guys give me some ideas on this subject? Example design a website like gumtree.com, the content is the main thing which is the main thing to be handled by angular, but how you deal with the search engines? Heard about prerender but is google going to look at each possible variation as a new page(which would be good) also if not all your content needs to be dynamic, example you
  10. still the same... could you tell me what is (el)? also why do i need (actLinks); at the very end
  11. which supposed to be whichpic right? Now just tried showPic() and showPic(whicpic). No luckyet
  12. Hi, Im trying to run the showPic function without putting any JS into HTML(when i used onclick = showPic() return false, it worked fine). I added prepareGallery function for this reason and I cant get it working. I think I can see it changes the pics but link will be executed also. Anyone got an idea where I made the mistake? <body><h1>Snapshots</h1><ol id="links"><li><a href="benfica.jpg" title="benfica">Benfica</a></li><li><a href="yamaha.jpg" title="yamaha">Yamaha</a></li><li><a href="island.jpg" title="i
  13. is there any other stuff or website where you could recommend free sliders?
  14. second on is Use of getPreventDefault() is deprecated. Use defaultPrevented instead. in jquery-1.10.2.js Ive changed this and the error disappeared but nothing changed. The whole div doesnt show up and some CSS wont work and some other jquery // Events bubbling up the document may have been marked as prevented// by a handler lower down the tree; reflect the correct value.this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
  15. It shows 2 JS errors. first is ReferenceError: TweenMax is not defined // set container 3d propsTweenMax.set(container, {perspective:600})TweenMax.set(carousel, {z:-(radius)})
  16. Anyone got some useful idea how to create a div and give it an X on the top right corner, so if user clicks on it, it will fold away with jquery. Should i just create another div within the main one and position it?? It sound too cheap to me, anyone got a better idea? Thanks
  17. Hi, I am trying to create a decent website. I decided to use some jquery to make it look better, but frankly im struggling with it as im still new to JS and Jquery. I want to add a 3D jquery image slider http://codepen.io/johnblazek/pen/nceyw but as soon as I add it, it messes up my css and nothing is working. In the header is used <link href="css/ui-lightness/jquery-ui-1.10.4.min.css" rel="stylesheet"><script src="js/jquery-1.10.2.js"></script><script src="js/jquery-ui-1.10.4.js"></script> index.html style.css
  18. Thank you Davej, would you sell any of your knowledge?? If braincells can be transferred, I would be happy to buy just a small piece of it, that would be more than enough for me..
  19. In my sample, each branch has 2 medicines, each medicine will have a stocklist with the PK stocklist_id. Should I add each stocklist_id separately? Also do i need to repeat the insert into statement for each line or can i just do it for each table like insert into branches (...) values values values? I uploaded the ddl in a txt. Could you give me any comment on that? Also it should not be enhanced as this is quite close to what I have to cover and that is all i have got to do, just need to make it work. I have to populate the tables and have a few sql commands to retrieve different dat
  20. Hi, I have created a database but when I try to insert data in oracle, I get an error ORA-02291: integrity constraint (T.BRANCHES_MEDICINE_STOCK_FK) violated - parent key not found. This branches medicine stock fk is above the relation between branches and medicine table. I used INSERT INTO Branches (branch_id, branch_name, stocklist_id, contact_id) VALUES ('b01','London Road','mst01,mst02','cd01');INSERT INTO Branches (branch_id, branch_name, stocklist_id, contact_id) VALUES ('b02','Loughborough Road','mst03,mst04','cd02');INSERT INTO Branches (branch_id, branch_name, stocklist_i
  21. and for function deleteComment I think there should be and else thingy as well, but what should I write there if I dont want it to do anything because if top box not checked I get an error msg or some sort of loop should be there?
  22. this was the closest I got I think. Could anyone help me correct it pls? Thank you function deleteComment(){var x = document.getElementById("checkbox")[0][i++];for(var i=0; i<check.length; i++); if (x.checked == true)var parent=document.getElementById("div1"); var child=document.getElementById("p"); parent.removeChild(child);}
  23. Hi, I am still working on this. I got this far, but when I want to delete a new node, I have to thick it and it can only be the top one and only 1 at the time. Could someone help me how to force it to delete all checked nodes at the same time? Some loop would do it? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>HTML</title><script>
  24. I sorted out the confirmation box..proud of myself:)
×
×
  • Create New...