Questions tagged [rel]

The rel attribute specifies the relationship between the current document and the linked document

The rel attribute is used in HTML elements to specify the relationship and connection between the current document and the linked document.

Source: W3C (link)

204 questions
0
votes
1 answer

jQuery: One fancybox gallery for each unordered list of links

In a page in which I have two or more unordered lists of links at which each link links to an image. As these unordered lists are generated from a database I would like to get fancybox to make one gallery from each unordered list. Do you hve an idea…
Nele
  • 45
  • 3
0
votes
0 answers

How to open colorbox group from non-colorbox element click?

I want to open the jquery colorbox plugin from an element not related to the colorbox group of photos. There is no colorbox .open() method, only an open:true property used in setting it that just tells it to immediately open. I've…
johntrepreneur
  • 4,514
  • 6
  • 39
  • 52
0
votes
1 answer

HTML5 alternative for rel=""

What is the HTML5 alternative for rel="" in the following code: Without the rel="" attribute, the page is not functional, nor will it validate as HTML5 compliant.
Matt
  • 1,561
  • 5
  • 26
  • 61
0
votes
1 answer

insert rel attribute with javascript

I have this function : if (location.locationUrl != '') { content += "View location…
agis
  • 1,831
  • 10
  • 33
  • 68
0
votes
1 answer

Add rel="lightbox" to image (forced by javascript/jquery)

On my website I have an image. I try to add a rel="lightbox" because I want to open the image in Lightbox when I click it. But I'm not able to change this part of the HTML code. Is there another solution to 'force' the rel with something like…
robin S
  • 3
  • 1
  • 2
0
votes
1 answer

Using PHP to generate rel canonical on multiple pages within the same category (and using the glob( ) function)

Let's say you work for a company that has a reasonably large e-commerce website with lots of product categories and subcategories (and sometimes, sub-subcategories). As such, for the ease of the user, there are some categories that have duplicate…
Kale
  • 601
  • 1
  • 8
  • 25
0
votes
2 answers

getElementsByTagName setAttribute and regex javascript

i want to put rel=lightbox to some links that mediabox support using javascript. i try this and wonder why it's not working? test: http://jsbin.com/opica please help edit this: http://jsbin.com/opica/edit