Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

k3rt90

Members
  • Joined

  • Last visited

  1. So upon .click i want to change the h3.portraits background image and then have it change back when i click again. $(document).ready(function(){ $("#portraits .container").hide(); var up = "../images/btn-portraits-hide.png"; var down = "../images/btn-portraits-show.png"; $(".portraits").click(function(){ var icon = $('.portraits', this); $(this).next("#portraits .container").slideToggle("slow"); icon.attr("src", this.attr("src") == up ? down : up); }); }); <div id="portraits"> <h3 class="portraits">Portraits</h3> <div class="container"></div> </div>
  2. Hey Guys, I am trying to customize, a fb like button to fit a design, and i can't edit anyhting inside the iframe... i have positioned it where i want to to be but i need to position the "nub" to the right hand side, which is in the iframe.
  3. Hello, My callback funciton doesn't seem to be working at the end of the CalculateDistances function, what am i doing wrong? <script type="text/javascript"> //<![CDATA[ var address = null; $(function () { $('.number').each(function (i) { i++; $(this).text(i); }); address = <%= Postcode %>; }); //]]> </script> <script type="text/javascript"> $(function () { initialise(); }); var geocoder; var map; var bounds = new google.maps.LatLngBounds(); var startAddress; var location1, location2; function initialise() { geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 3, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); location1 = getLatLngForAddress("Sydney, NSW"); location2 = getLatLngForAddress("Brisbane, QLD"); codeAddress(); calculateDistances(); } // startAddress > location1 //startAddress function calculateDistances() { var measureDistance = new google.maps.DistanceMatrixService(); measureDistance.getDistanceMatrix({ origins: location1, destinations: location2, travelMode: google.maps.TravelMode.DRIVING, unitSystem: google.maps.UnitSystem.METRIC, avoidHighways: false, avoidTolls: false }, callback); }; function callback(response, status) { console.log('callback'); if (status != google.maps.DistanceMatrixStatus.OK) { alert('Error was: ' + status); } else { var origins = response.originAddresses; var destinations = response.destinationAddresses; var outputDiv = document.getElementById('outputDiv'); outputDiv.innerHTML = ''; //deleteOverlays(); for (var i = 0; i < origins.length; i++) { var results = response.rows[i].elements; addMarker(origins[i], false); for (var j = 0; j < results.length; j++) { addMarker(destinations[j], true); outputDiv.innerHTML += origins[i] + " to " + destinations[j] + ": " + results[j].distance.text + " in " + results[j].duration.text + "<br />"; } } } } var markersArray = []; var destinationIcon = "http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=D|FF0000|000000"; var originIcon = "http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=O|FFFF00|000000"; function addMarker(location, isDestination) { var icon; if (isDestination) { icon = destinationIcon; } else { icon = originIcon; } geocoder.geocode({'address': location}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { bounds.extend(results[0].geometry.location); map.fitBounds(bounds); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location, icon: icon }); markersArray.push(marker); } else { alert("Geocode was not successful for the following reason: " + status); } }); } function deleteOverlays() { if (markersArray) { for (i in markersArray) { markersArray[i].setMap(null); } markersArray.length = 0; } } function codeAddress() { var address = startAddress = <%= Postcode %> + ", Australia"; geocoder.geocode({ 'address': address }, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); // bounds.extend(results[0].geometry.location); // mapfitBounds(bounds); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); } else { alert("Geocode was not successful for the following reason: " + status); } }); } function getLatLngForAddress(address) { geocoder.geocode({ 'address': address }, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); } else { alert("Geocode was not successful for the following reason: " + status); } }); } </script> Any help would be amazing!!!
  4. Hello, i'm trying to get a google map working by the post code you put in....... but so fair that map wont even display... <script type="text/javascript"> $(function () { initialise(); }); var geocoder; var map; function initialise() { geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(-29.5328037, 145.491477); var myOptions = { zoom: 4, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); function codeAddress() { //var address = document.getElementById("address").value; geocoder.geocode({ 'address': address }, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map().setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); } else { alert("Geocode was not successful for the following reason: " + status); } }); } </script>
  5. i have three divs with the class of item in a row and i'm trying to get the last one to not display a border using the seudo class last child: #latestnews .item { width: 220px; height: 135px; overflow: hidden; border-right: #e0e0e0 1px solid; float: left; margin-right: 20px; } #latestnews .item:last-child { border: none; } layout: <div id="latestnews"> <h5 class="h5-ourlatestnews">latest news</h5> <div class="item"> <h6>30 july 2011</h6> <h5>Trufle & Wine Dinner</h5> <p>Unique truffle & matched wine dinner with The Cosmopolitan Hotel, Aussie Truffle Dogs' Georgie Patterson and Passing Clouds. Spaces limited, Booking essential. <a href="">Read more...</a></p> </div> <div class="item"> <h6>30 july 2011</h6> <h5>Trufle & Wine Dinner</h5> <p>Unique truffle & matched wine dinner with The Cosmopolitan Hotel, Aussie Truffle Dogs' Georgie Patterson and Passing Clouds. Spaces limited, Booking essential. <a href="">Read more...</a></p> </div> <div class="item"> <h6>30 july 2011</h6> <h5>Trufle & Wine Dinner</h5> <p>Unique truffle & matched wine dinner with The Cosmopolitan Hotel, Aussie Truffle Dogs' Georgie Patterson and Passing Clouds. Spaces limited, Booking essential. <a href="">Read more...</a></p> </div> anything?
  6. k3rt90 replied to k3rt90's topic in Frontend
    figured it out, turns out all i needed to do was go home and sleep haha
  7. k3rt90 replied to k3rt90's topic in Frontend
    The html isn't really relevant as i am using asp to hook into our cms
  8. are you trying the jquery method or just the css method? if just the .css you'll need to create relevant classes to hold the images. yeah and importing jquery would help too haha
  9. position: relative on the thumbnail image thumbnail a .bigimage { display: none; width: 100px height: 100px; position: absolute; } thumbnail a:hover .bigimage { display: block; } or you could show/hide or fadeIn/fadeOut the div using jquery, would still need it positioned absolutly above everthing else though. $(function (){ $('#thumb').mouseOver(function () { $('#bigimage').fadeIn, "slow"); )}; )}; The jquery is probs wrong, but its osmething like that, look it up with jquery fadeIn or something.
  10. k3rt90 posted a topic in Frontend
    Hey Guys i'm having some issues with the triple level drop down menu: Heres the code: #navigation { float: right; width: 736px; margin-top: -25px; } #navigation ul { list-style-type: none; padding-top: 20px; font-weight: bold; padding-bottom: 30px; padding-left: 0; margin-left: 15px; display: inline; position: relative; } #navigation li { display: inline; line-height: 1; height: 10px; position: relative; background: url('images/img-nav-bg.gif') no-repeat right; } #navigation a { line-height: 1; color: #ffb24f; margin: 0 6px; padding: 6px 12px; text-decoration: none; } #navigation a:hover { background: #05070c; color: #fff; border-radius: 5px; } #navigation ul li a.AspNet-Menu-Selected { background: #05070c; color: #fff; border-radius: 5px; } #navigation ul li a.AspNet-Menu-ChildSelected { background: #05070c; color: #fff; } #navigation ul .nav-contactus { background: none; } #navigation ul ul { display: none; width: 236px; height: auto; background: #0a132f; text-align: left; } #navigation li:hover ul { display: block; position: absolute; z-index: 2; left: 0; top: 25px; padding: 0; margin: 0; } #navigation ul ul li { background: none; display: block; height: 20px; margin: 0; } #navigation ul ul a { display: block; padding: 5px 3px; margin: 0; } #navigation ul ul a:hover { background: #0a0a0b; display: block; width: 230px; margin: 0; padding: 5px 3px; border-radius: 0; } #navigation ul ul ul { display: none; width: 236px; height: auto; background: #0a132f; } #navigation ul ul li:hover li { display: block; position: absolute; width: 230px; left: 232px; top: -26px; z-index: 2; } and a video of the isssue... There is a gap between the li a:hover of the main nav and the drop down box so when you go to roll onto the dropdown box it goes away(unless you do it really fast) the ul ul ul li doesn't display a background color(but on hover it does) and i have the third level ul displaying when i roll over the bottom link of the second ul and this creates a navigational disco strobe like effect :S haha. Can anyone help me with this? Video: ALSO: IN ie7-ie8 contact us <----- nav button drops down under the nav, here's an image of that:
  11. all fixed nevermind
  12. and the main nav "ul" the hover state '#navigation ul li a:hover' background is not staying when i roll onto the drop down menu...... any chance anyone knows whats going on with that as well?
  13.    k3rt90 reacted to a post in a topic: css IE7 problem drop down
  14. awesome! that worked well, I have set an individual width on the drop down menus now using the first nav class names, working in ie9 but not ie7. again here is a screen and the code: #navigation .nav-resources ul li a { width: 106px; } #navigation .nav-aboutus ul li a { width: 91px; } #navigation .nav-services ul li a { width: 89px; }
  15. Hey guys i have a drop down menu problem in ie7.... here is the difference and here is the css... #navigation ul { text-transform: uppercase; width: 992px; position: relative; list-style-type: none; font-size: 0.833em; margin: 0 auto; text-shadow: 1px 1px 2px #4f4f4f; } #navigation li { position: relative; display: block; float: left; line-height: 1; } #navigation a { color: #fff; text-decoration: none; } #navigation a:hover { text-decoration: none; } #navigation ul li a { line-height: 39px; padding: 12px 14px; background: url('images/img-nav-bg.gif') repeat-x; } #navigation ul li a:hover, #navigation ul li:hover, #navigation ul li.AspNet-Menu-Selected a, #navigation ul li.AspNet-Menu-ChildSelected a { background: url('images/img-nav-bg-hover.gif') repeat-x; } #navigation ul li.AspNet-Menu-ChildSelected ul li a { background: url('images/img-dropdown-bg.png') repeat; } #navigation ul ul li .AspNet-Menu-ParentSelected { background: url('images/img-dropdown-bg.png') repeat; } #navigation ul ul { display: none; width: 110px; } #navigation ul li:hover ul { display: block; position: absolute; z-index: 99; } #navigation ul ul li a:hover, #navigation ul ul li.AspNet-Menu-Selected a { text-decoration: underline; background: url('images/img-dropdown-bg.png') repeat; } #navigation ul ul li.AspNet-Menu-ParentSelected a { background: url('images/img-dropdown-bg.png') repeat; } #navigation ul ul li a { display: block; background: url('images/img-dropdown-bg.png') repeat; width: 106px; margin: 0; padding: 0 3px; text-align: left; text-shadow: none; float: left; height: auto; line-height: 1.8; } any help would be awesome!
  16. k3rt90 replied to k3rt90's topic in Frontend
    thanks i'll give it a crack!

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.