[Solved] How to target certain text to make bold using css

[ad_1] Assuming the “Badge Name: ” phrase is constant, one approach is using CSS :before pseudo element to generate the content as follows: EXAMPLE HERE .tag:before { content: “Badge Name: “; font-weight: bold; } Hence you could remove that phrase from your script: wrapper.append(‘<div class=”tag” >’+ item.badgename + ‘</div>’+ ‘<br>’); Another option is wrapping that … Read more

[Solved] Javascript days of the week [closed]

[ad_1] Your current weekDay() function will return the current day of the week, but your other code calls weekDay() and doesn’t do anything with its return value. You need to use the value together with some string concatenation: var today = weekDay(); document.write(“<iframe src=”” + today + “”.htm’></iframe>”); Or just: document.write(“<iframe src=”” + weekDay() + … Read more

[Solved] append the URL so that it will not give 404 [closed]

[ad_1] To append vars to the end of a url, the first one needs to start with the question mark (?), with subsequent variables added with an ampersand (&). For example: ‘http://my.site.com/index.html?variable1=hello&variable2=goodbye’ This can be done for “any number of specific reasons” [ad_2] solved append the URL so that it will not give 404 [closed]

[Solved] Creating Image slider using only jQuery

[ad_1] Mabye something like this: jQuery(document).ready(function () { var images = []; var loop; var i = 0; images[0] = “https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ1GfA01TRDgrh-c5xWzrwSuiapiZ6b-yzDoS5JpmeVoB0ZCA87”; images[1] = “https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQQSyUWiS4UUhdP1Xz81I_sFG6QNAyxN7KLGLI0-RjroNcZ5-HLiw”; images[2] = “https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT_E_OgC6RiyFxKtw03NeWyelfRgJ3Ax3SnZZrufNkUe0nX3pjQ”; $(‘img’, ‘.maindiv’).mouseover(function () { //Get divs inside main div and reverse them, so right is first var divs = $($(‘div’,’.maindiv’).get().reverse()); //Set up loop loop = setInterval(function(){ divs.each(function(key, div){ … Read more

[Solved] Can’t set text margin to make it lower

[ad_1] I recommend you to look up a lot of web based tutorials before you go any further, as web based development is vast (esp for a complete beginner) I’ve created a quick demo of margin and padding examples below, (I would post as a comment, although for demonstration purposes, this might be better) html{background:gray;} … Read more

[Solved] Need Complex Layout

[ad_1] Should not be too hard. There may be complications based on headers/navigation, or other wrapper type divs you have in your markup, but this snippet gives the general idea. Try resizing, should be responsive. div { background-color: lightblue; margin-top: 20px; margin-bottom: 20px; min-height: 80px; } .full-center { margin-left: 10%; margin-right: 10%; } .full-right { … Read more

[Solved] Can’t get dropotron script to work properly [HTML/CSS/JavaScript]

[ad_1] For formatting purposes I’m putting this as an answer. Your scripts should look like this at the bottom and there should be no scripts in the head: <!– Scripts –> <script src=”https://stackoverflow.com/questions/34125427/assets/js/jquery.min.js”></script> <script src=”assets/js/jquery.poptrox.min.js”></script> <script src=”assets/js/jquery.scrolly.min.js”></script> <script src=”assets/js/jquery.scrollex.min.js”></script> <script src=”assets/js/skel.min.js”></script> <script src=”assets/js/util.js”></script> <!–[if lte IE 8]><script src=”assets/js/ie/respond.min.js”></script><![endif]–> <script src=”assets/js/jquery.dropotron.js”></script> <script> $(function() { // Note: … Read more

[Solved] How to color portion of text using css or jquery

[ad_1] I’ve used regular expression(regex) in javascript as follows: function chnColor(){ var str=document.getElementById(“myelement”).innerHTML; str=str.replace(/(%)(.*)(%)/g,”<font color=”red”>$2</font>”); //Here $2 Means Anything in between % and % This is what you need to color document.getElementById(“myelement”).innerHTML=str; } DEMO Hope it helps! cheers :)! [ad_2] solved How to color portion of text using css or jquery