Inserting other divs on the external top right of sb_body

1 message Options
Embed this post
Permalink
stoof

Inserting other divs on the external top right of sb_body

Reply Threaded More More options
Print post
Permalink
Hello everyone,

I'am going back because of a new problem while inserting new div in the upper right corner of shadowbox 3.0b.
A print function and a download link.

Here is what i've done :

#### shadowbox.js ####
markup:'<div id="sb-container">
<div id="sb-overlay"></div>
<div id="sb-wrapper">
<div id="sb-title">
<div id="sb-title-inner">
#### new lines ####
< a h ref="Javascript:return false;" id="sb_printout" o nclick="" target="_Blank" title="{printreview}" style="border:none;font-size:10px;" >
< i mg s rc="/img/imprimer.png" style="width:16px;height:16px;"> {printout}
< a h ref="" id="sb_download" target="_Blank" title="{downloadpdf}" style="border:none;font-size:10px;">
< i mg s rc="/img/pdf.png" style="width:16px;height:16px;"> {download}
#### end new lines ####
</div></div>
<div id="sb-body">
<div id="sb-body-inner" title="{close}" o nclick="Shadowbox.close()" style="cursor:pointer;"></div>
<div id="sb-loading">
< a o nclick="Shadowbox.close()">{cancel}
</div>
</div>
<div id="sb-info">
<div id="sb-info-inner">
<div id="sb-counter"></div>
<div id="sb-nav">
< a id="sb-nav-close" title="{close}" o nclick="Shadowbox.close()">
< a id="sb-nav-next" title="{next}" o nclick="Shadowbox.next()">
< a id="sb-nav-play" title="{play}" o nclick="Shadowbox.play()">
< a id="sb-nav-pause" title="{pause}" o nclick="Shadowbox.pause()">
< a id="sb-nav-previous" title="{previous}" o nclick="Shadowbox.previous()">
</div>
<div style="clear:both"></div>
</div>
</div>
</div>
</div>'

#### shadowbox.css ####
#sb_printout {
  position: relative;
  font-family: Helvetica, Tahoma, sans-serif;
  line-height: 16px;
  color: #fff;
  right:15px;
  top:0px;
}
#sb_download {
  position: relative;
  font-family: Helvetica, Tahoma, sans-serif;
  line-height: 16px;
  color: #fff;
  right:40px;
  top:0px;
}

With the shadowbox 2 it was working perfectly (thanx Wizzud) but since i've managed to change for 3.0b version, i can't get any expected results.

Is anyone there to help me a bit ?

Thanx to all