The rel attribute specifies the relationship between the current document and the linked document. Search engines can use this attribute to get more information about a link.
rel Attribute Values
nofollow
Links to an unendorsed document, like a paid link. (“nofollow” is used by Google, to specify that the Google search spider should not follow that link)
noreferrer
Requires that the browser should not send an HTTP referer header if the user follows the hyperlink
noopener
Requires that any browsing context created by following the hyperlink must not have an opener browsing context
Add the following code into your HTML page between the <head> and </head> tags or before the closing </body> tag
<script>
document.addEventListener('DOMContentLoaded', function () {
var links = document.getElementsByTagName("a");
var i;
for (i = 0; i < links.length; i++) {
if (location.hostname !== links[i].hostname) {
links[i].rel = "nofollow noopener noreferrer";
links[i].target = "_blank";
}
}
});
</script>
Error: f.easing[e.animatedProperties[this.prop]] is not a function
This problem happens with jQuery Easing Plugin. This error occurs when a newer version of jquery and jquery.easing is used with an older version of the call to animate.easing.
Solution:
Use the following jQuery, JQuery Easing and JQuery Easing Compatibility Download JQuery – Latest version from JQuery
We could make an entire div tag clickable by redirecting the click to a page and by changing the cursor sytle to a pointer. This is good if you want your logo or your banner to be clickable, specially if the logo is embedded together with the banner. Making the entire banner clickable would be very beneficial to your site.
It’s important to note that this method does not replace a class. It simply adds the class, appending it to any which may already be assigned to the elements.
More than one class may be added at a time, separated by a space, to the set of matched elements, like so:
<form name='yourForm' action="">
<input type='text' name='yourinput' id='yourinput' value='Hello World'>
</form>
<script type="text/javascript">
// Assign the value to the input with the id passed in
function replaceInputValue( idRef, val ) {
// Make sure browser supports getElementById
if(!document.getElementById ) return;
// Find the input by it's id
var inputObj = document.getElementById( idRef );
if( inputObj ) {
// Update the value
inputObj.value = val;
}
}
replaceInputValue( 'yourinput', 'Hello Dolly' );
</script>
SqueezeBox is an unobtrusive LightBox inspired overlay, for modal boxed content on your site. It’s a snap to show images but just as easy to use HTML elements, Ajax requests, iFrames, SWF movies and more.
Recent Comments