Inserting an image into Clearbox with html code

Hi guys,
I am using Clearbox to make pop up boxes so I can use text and images in it and I am editing them with html code.
This is the code that I have (default for clearbox html)
<div class="item"><a href="htmlcontent" rel="clearbox[gallery=Gallery,,width=400,,height=200,,html=&lt;br /&gt;&lt;strong&gt;&lt;font size=&quot;4&quot; color=&quot;#999&quot;&gt;BRC Food!&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;You can use most of html codes. For more information, please check the 'Professional usage' on www.clearbox.hu!&lt;/strong&gt;,,title=HTML content]"><img  src="images/brc_food_1.jpg" alt="html content" /></a></div>
This code works fine, but I also want to add an image to it.
<img src="images/brc_food.jpg" alt="BRC Food" width="500" height="334">
Can anyone tell me how I would add the above together. Just inserting it into the code does not work, and I have also tried replacing the
&lt; INSTEAD OF < / &gt; INSTEAD OF > / &quot; INSTEAD OF "
Any help would be appreciated

Whenever I deploy Fancybox on a page, I usually throw "the whole enchilada", to use a food analogy, in there:
I link to every possible script from Fancybox just in case I'll need it.
<script type="text/javascript" src="fancybox/lib/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="fancybox/source/jquery.fancybox.js"></script>
<link rel="stylesheet" type="text/css" href="fancybox/source/jquery.fancybox.css" media="screen">
<link rel="stylesheet" type="text/css" href="fancybox/source/helpers/jquery.fancybox-buttons.css">
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-buttons.js"></script>
<link rel="stylesheet" type="text/css" href="fancybox/source/helpers/jquery.fancybox-thumbs.css">
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-thumbs.js"></script>
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-media.js"></script>
<script type="text/javascript" src="fancybox/lib/fancybox_definitions.js"></script>
That last one "fancybox_definitions" is simple a remote file I made from the inline styiling I found in thwe Fancybox demo page:
It reads as follows:
// JavaScript Document
$(document).ready(function() {
*  Simple image gallery. Uses default settings
$('.fancybox').fancybox();
*  Different effects
// Change title type, overlay closing speed
$(".fancybox-effects-a").fancybox({
helpers: {
title : {
type : 'outside'
overlay : {
speedOut : 0
// Disable opening and closing animations, change title type
$(".fancybox-effects-b").fancybox({
openEffect  : 'none',
closeEffect     : 'none',
helpers : {
title : {
type : 'over'
// Set custom style, close if clicked, change title type and overlay color
$(".fancybox-effects-c").fancybox({
wrapCSS    : 'fancybox-custom',
closeClick : true,
openEffect : 'none',
helpers : {
title : {
type : 'inside'
overlay : {
css : {
'background' : 'rgba(85,164,194,0.85)'
// Remove padding, set opening and closing animations, close if clicked and disable overlay
$(".fancybox-effects-d").fancybox({
padding: 0,
openEffect : 'elastic',
openSpeed  : 150,
closeEffect : 'elastic',
closeSpeed  : 150,
closeClick : true,
helpers : {
overlay : null
*  Button helper. Disable animations, hide close button, change title type and content
$('.fancybox-buttons').fancybox({
openEffect  : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
closeBtn  : false,
helpers : {
title : {
type : 'inside'
buttons     : {}
afterLoad : function() {
this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
*  Thumbnail helper. Disable animations, hide close button, arrows and slide to next gallery item if clicked
$('.fancybox-thumbs').fancybox({
prevEffect : 'none',
nextEffect : 'none',
closeBtn  : false,
arrows    : false,
nextClick : true,
helpers : {
thumbs : {
width  : 50,
height : 50
*  Media helper. Group items, disable animations, hide arrows, enable media and button helpers.
$('.fancybox-media')
.attr('rel', 'media-gallery')
.fancybox({
openEffect : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
arrows : false,
helpers : {
media : {},
buttons : {}
*  Open manually
$("#fancybox-manual-a").click(function() {
$.fancybox.open('1_b.jpg');
$("#fancybox-manual-b").click(function() {
$.fancybox.open({
href : 'iframe.html',
type : 'iframe',
padding : 5
$("#fancybox-manual-c").click(function() {
$.fancybox.open([
href : '1_b.jpg',
title : 'My title'
href : '2_b.jpg',
title : '2nd title'
href : '3_b.jpg'
helpers : {
thumbs : {
width: 75,
height: 50
Copy that block of code and save it into a js file with the name "fancybox_definitions" in the fancybox/lib folder.
Then add the other "calls" to Fancybox files to your header.  It should work from there.

Similar Messages

  • How to insert a shoutbox and a counter in a flash file with html code?

    How to insert a shoutbox and a counter in a flash file with
    html code?
    Code shout box
    <!-- BEGIN MYSHOUTBOX.COM CODE -->
    <iframe src="
    http://489676.myshoutbox.com/"
    width="152" height="300" frameborder="0"
    allowTransparency="true"></iframe>
    <!-- END MYSHOUTBOX.COM CODE-->
    Code compteur
    <script type="text/javascript" src="
    http://www.123compteur.com/counterskinable01.php?votre_id=268303"></script><noscript><a
    href="
    http://www.123compteur.com"
    target="_blank">compteur</a></noscript>

    thx =D

  • How to insert an image into text area?

    Hi everybody,
    I have a proplem : insert an image into text area ( likely Yahoo Chat)
    eg : Hello,World :D =)) :x
    I can't do it.
    Can you help me?
    Thank you!
    Edited by: Chelsea_Drogba7589 on May 28, 2010 9:28 PM

    StanislavL wrote:
    [http://java-sl.com/tip_autoreplace_smiles.html]
    Neat example. :)
    Try this.I did and was at first confused because I expected the code to arrive on-screen looking like the screen-shot at the page. Then it occured to me to type some text including a smiley, and it changed to the icon as expected.
    For other people like me who are not quite very clever, how about adding an 'Instructions' section, or initializing the JEP with instructions?
    BTW -
    "The screenshot shows how it looks like:" reads better as..
    "The screenshot shows how it looks:"

  • Inserting Multiple Images into oracle database using JDBC

    I wanted to insert multiple images into database using JDBC by reading it from the file... and i am passing photos.txt(my text file) as an input parameter... I have inserted all the values into the database except for the image part... this is my content of photos.txt file and i have copied all the images into the folder
    *" C:\\photos "*
    *1,in1.jpg,108,19,in-n-out*
    *2,in2.jpg,187,21,in-n-out*
    *3,in3.jpg,308,41,in-n-out*
    *4,in4.jpg,477,52,in-n-out*
    *5,in5.jpg,530,50,in-n-out*
    and i want to store in1.jpg,in2.jpg,in3.jpg,in4.jpg,in5.jpg into the oracle databse using JDBC.... i have tried a lot using BLOB column.... and i have created my table as
    CREATE TABLE PHOTO(
    ID NUMBER NOT NULL PRIMARY KEY ,
    Name BLOB,
    X DOUBLE PRECISION,
    Y DOUBLE PRECISION,
    Tags VARCHAR2(40)
      try {                 // for restaurant System.out.println();System.out.println();System.out.println(); System.out.print("  Creating Statement for Photo...\n");             stmt2 = con.createStatement ();                       stmt2.executeUpdate("delete from PHOTO"); stmt2.executeUpdate("commit"); PreparedStatement stmt3 = con.prepareStatement ("INSERT INTO PHOTO VALUES (?, ?, ?, ?, ?)");             System.out.print("  Create FileReader Object for file: " + inputFileName1 + "...\n");             FileReader inputFileReader2 = new FileReader(inputFileName1);             System.out.print("  Create BufferedReader Object for FileReader Object...\n");             BufferedReader inputStream2  = new BufferedReader(inputFileReader2);             String inLine2 = null;                         String[] tokens; //            String[] imageFilenames = {"c:\\photos\\in1.jpg","c:\\photos\\in2.jpg","c:\\photos\\in3.jpg","c:\\photos\\in4.jpg","c:\\photos\\in5.jpg", //  "c:\\photos\\in6.jpg","c:\\photos\\in7.jpg","c:\\photos\\in8.jpg","c:\\photos\\in9.jpg","c:\\photos\\in10.jpg","c:\\photos\\arb1.jpg","c:\\photos\\arb2.jpg", //  "c:\\photos\\arb3.jpg","c:\\photos\\arb4.jpg","c:\\photos\\arb5.jpg","c:\\photos\\den1.jpg","c:\\photos\\den2.jpg","c:\\photos\\den3.jpg", //  "c:\\photos\\den4.jpg","c:\\photos\\den5.jpg","c:\\photos\\hop1.jpg","c:\\photos\\hop2.jpg","c:\\photos\\hop3.jpg","c:\\photos\\hop4.jpg","c:\\photos\\hop5.jpg"};               File file = new File("C:\\photos\\in1.jpg");            \\ ( Just for example  )           FileInputStream fs = new FileInputStream(file);                         while ((inLine2 = inputStream2.readLine()) != null) {               tokens= inLine2.split(",");             st2 = new StringTokenizer(inLine2, DELIM);                                                             stmt3.setString(1, tokens[0]);               stmt3.setBinaryStream(2, fs, (int)(file.length()));               stmt3.setString(3, tokens[2]);               stmt3.setString(4, tokens[3]);               stmt3.setString(5, tokens[4]);               stmt3.execute(); //execute the prepared statement               stmt3.clearParameters(); 
    As i am able to enter one image file by above code in1.jpg in to the oracle database.... but i am not able to insert all the image file in to the database.....do tell me what should i do.... and can you give me the example on the basis of the above code of mine...
    do reply as soon as possible..

    jwenting wrote:
    that depends. Putting the images in BLOBs prevents the file locations stored in the database from getting out of synch with the filesystem when sysadmins decide to reorganise directory structures or "archive" "old" files that noone uses anyway.True, but it really comes down to a business decision (cost-benefit analysis). If you have the bucks, the expertise, and the time, go with the Blobs, otherwise go with the flat files.

  • How can I insert a image into a BLOB column in a table?

    I am using forms6i against a 10gR2 database and I have one table with a BLOB column and I try to insert a image into this column. I get ORA-01461 error.
    The curious case is that in another table with a BLOB column it works very fine.
    What happens with the first table? How can I avoid the error?
    Thanks in advance.

    Hi hyue,
    Thanks for visiting Apple Support Communities.
    If you would like to add an image to a project in iMovie for iOS, see this article for helpful steps:
    iMovie for iOS (iPad): Add photos to a project
    http://support.apple.com/kb/PH3171
    All the best,
    Jeremy

  • Why can't I insert an image into the header in Pages 5.0.1?

    In previouis versions of Pages, I was able to insert an image into a Header or Footer.
    This action does not appear an option in Pages 5.0.1.
    Am I missing something?
    I must say, I do not like the NEW interface. Much has been lost with the transition to the Cloud.
    I like the concept of using my iPad Air and my desktop, however functionality has been tossed out for deference to the Tablet.

    KT,
    Use a "Floating Graphic" and send it to the Section Master in the Arrange > Section Master menu. Floating is called Stays With Page now. Don't worry about it not being in the Header field. It will serve the purpose.
    Jerry

  • Email with HTML code

    I have a problem with generating HTML based email.
    BPEL code example:
    <copy>
    <from expression="'%lt;HTML%gt;%lt;BODY%gt;%lt;B%gt;Hello World! %lt;/B%gt;%lt;/BODY%gt;%lt;/HTML%gt;'"/>
    <to variable="mailRequestOne" part="payload" query="/mail:mailMessage/mail:content/mail:multiPart/mail:bodyPart[1]/mail:content"/>
    </copy>
    It would send email:
    %lt;HTML%gt;%lt;BODY%gt;%lt;B%gt;Hello World!%lt;/B%gt;%lt;/BODY%gt;%lt;/HTML%gt;
    Any idea how to send an email with HTML code?
    ps: replace % by &

    Not sure what you expect. Your URL is absolute and pointing to a local file resource. It's not a proper relative HTML link. Beyond that it's toatlly unclear how you actually plan to load your image and where they are hosted, so nobody can tell you anything. Either way, there is an obviously painful lack of understanding of even the most basic web techniques, so the best advise anyone would give you is to spend some time with a web search and actualyl learn some of that stuff...
    Mylenium

  • How can I Manually Insert an Image into a Picture Control?

    Hi,
            I am able to insert an image programmatically into a picture control. But I want to insert an image into the picture control without any code that is manually. How can I Do that?
    Thanks in Advance
    Regars,
    Malleswari

    malli wrote:
    Hi,
            I am able to insert an image programmatically into a picture control. But I want to insert an image into the picture control without any code that is manually. How can I Do that?
    Thanks in Advance
    Regars,
    Malleswari
     You may also drag and drop a picture directly to your front panel. You can also use paint, or some other tools,  to copy a part of a picture and past it into your front panel. This actually works for the block diagram also. Se example 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    pic example.vi ‏157 KB

  • How to insert embedded image into TextArea htmlText (and add IOErrorEvent.IO_ERROR listener).

    I unsuccessfully tried to find way to insert embedded image into TextArea via <img> tag. Can you point me out how to do this?
    Also, please, tell me how to handle IOErrorEvent from TextArea because adding IOErrorEvent.IO_ERROR listener to TextArea doesn't cause any effect when image url of img tag has not been found.
    Thanks

    i 've successfully inserted the image into the database... here is my code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.io.File;
    import java.io.FileInputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class Browse_java
    static Connection con=null;
    public static void main(String args[])
    try{
    System.out.println("(browse.java) just entered in to the class");
    con = new PMS.DbConnection().getConnection();
    System.out.println("(browse.java) connection string is"+con);
    PreparedStatement ps = con.prepareStatement("INSERT INTO img_exp VALUES(?,?)");
    System.out.println("(browse.java) prepare statement object is"+ps);
    File file =new File("C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    FileInputStream fs = new FileInputStream(file);
    byte blob[]=new byte[(byte)file.length()];
    fs.read(blob);
    ps.setString(1,"C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    ps.setBytes(2, blob);
    System.out.println("(browse.java)length of picture is"+fs.available());
    int i = ps.executeUpdate();
    System.out.println("image inserted successfully"+i);
    catch(Exception e)
    e.printStackTrace();
    finally
    try {
    con.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    }

  • How do I insert an image into a quetsion (post)

    What are Mozilla code-structure in new posts.?
    How do I insert an image into a new post?
    Thank you

    cor-el said
    If the image is on another server then we prefer to have a link instead of the real image in case it is a large image and we've already seen it or do not want to wait for it to load (server may be slow).
    I do not know what any of this means.
    I have a single laptop connected to the internet.
    So far I have worked out how to upload an image to a thread-reply by copying the uploaded file "path" and pasting it onto the reply
    and then after the reply is posted there are two incidence of each image
    1. the URL
    2. the image at the bottom of the reply
    I am a newbie so would appreciate any feedback
    (Firefox window controls have disappeared (Clean installed v18 5 days ago). Have logged another thread/reply on this forum)
    Thanks

  • How do you insert an image into a google map using a macbook?

    I am trying to put images into a Google map using my MacBook, but cannot seem to find any help. How do I insert an image into my Google map using my MacBook?

    Nothing complicated with your menu - very clear "ADD Image" but my menus are not as simple. Everytime I need to add an image I spend 5-10 minutes searching again. Wonder why so hard. I generally find Acrobat menus cryptic and unclear and I am big Adobe fan - use Illustrator, Photoshop, Dreamweaver, Premier, Fireworks etc - but Acrobat menus are like calculus in the dark.

  • Inserting still images into video

    I have PS CS4 Extended, and I am pretty new to working with video.  I need to insert still images into several continuous frames of video after removing the frames that are there. Can anyone help point me in the right direction?

    Hello, wooblesmom. This is actually the forum for Photoshop Elements. Questions about CS4 will get better answers in the appropriate forum. The Photoshop forums are here:
    http://forums.adobe.com/community/photoshop
    Good luck!
    Incidentally, if you really meant to ask about Premiere rather than Photoshop, those forums are here:
    http://forums.adobe.com/community/premiere

  • Insert an image into a pdf in preview

    Hi All,
    I would like to know hoe to insert an image into a pdf in preview.
    Thank you in advance for any opinion !

    The only way I know to do that would be with Adobe Acrobat which is rather expensive.  Or, you can try the roundabout method:
    1- open the pdf in Preview and begin a Print Process.
    2 - do a Print ➙ PDF ➙ Save PDF to iPhoto
    NOTE: works with anything you can print.  Creates a 200 dpi jpeg image of each page and saves it to iPhoto.
    3 - use a 3rd party image editor or Pages from iWork to add the transparent background gif or png logo to the image of the page.
    4 - to get it back to a pdf do a Print ➙ Save as PDF. 
    If you don't have the Save PDF to iPhoto in the PDF menu you can download it from  Toad's Cellar.  There are two versions, one 200 dpi and one 300 dpi.

  • Running Illustrator on CS4. Would like to insert photo image into body of type. Would appreciate any guidance. Thank you

    Running Illustrator on CS4. Would like to insert photo image into body of type. Would appreciate any guidance. Thank you

    Use a clipping mask.
    Illustrator Help | Clipping masks

  • How do I insert an image into a Form

    I want to insert an image into a form. This field will change each time I start a new form. I'm creating an invoice for a customer and they want to insert an image of the house they are working on. Each time they start a new job, they need a new invoice, needing a new image. Can the client inset a jpeg that they have on their computer? Please help!!

    If they have a full version of Acrobat, then you could set up a button field from the Forms menu and set it to accept an icon only. They would need to have some knowledge of Acrobat but it could be done.

Maybe you are looking for