Results 1 to 5 of 5

Thread: Image Thumbnail Viewer - Changing the font of the word CLOSE

  1. #1
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer - Changing the font of the word CLOSE

    1) Script Title: Image Thumbnail Viewer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    Hallo,

    I love this script but there is one little thing I would like to change and namely - the font and eventually the size of the word CLOSE in the pop-up window... (I am a neat freak )

    Does someone know if this is possible and if yes - how?

    Thanks in advance!

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    find this and change it:
    crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Close</span> </div><img src="'+which+'">'
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    find this and change it:
    crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Close</span> </div><img src="'+which+'">'
    Hi djr, thanks for your quick reply... I am afraid thou that I still have no idea what to change in this line in order to make the text (CLOSE) per example Verdana size 1
    Might seem a silly question but I am kinda new at this and still learning...

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    1. Check the code snippet that you had inserted in your <head> section.

    2. In that section you can find something like the following:

    Code:
    #dragbar #closetext{
    font-weight: bold;
    margin-right: 1px;
    }
    3. Now you need to remove #closetext from the above position and the removal will make the above section something like the following:
    Code:
    #dragbar{
    font-weight: bold;
    margin-right: 1px;
    }
    4. Now you need to specify another CSS rule for the closetext id which can be inserted at the bottom of your <style> section. It looks like the following:
    Code:
    #closetext{
    font-family:Verdana, Arial, Helvetica, sans-serif; 
    font-size:10px;
    color:#666666;
    font-weight: bold;
    margin-right: 1px;
    }
    5. The CSS rule that I mentioned in step 4 is an example one but it will give you an idea about the modification you are going to perform.

    6. I hope you have some basic knowledge of CSS which is the only necessary thing that you need to achieve what you want in this case.

  5. #5
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by codeexploiter View Post
    1. Check the code snippet that you had inserted in your <head> section.

    2. In that section you can find something like the following:

    Code:
    #dragbar #closetext{
    font-weight: bold;
    margin-right: 1px;
    }
    3. Now you need to remove #closetext from the above position and the removal will make the above section something like the following:
    Code:
    #dragbar{
    font-weight: bold;
    margin-right: 1px;
    }
    4. Now you need to specify another CSS rule for the closetext id which can be inserted at the bottom of your <style> section. It looks like the following:
    Code:
    #closetext{
    font-family:Verdana, Arial, Helvetica, sans-serif; 
    font-size:10px;
    color:#666666;
    font-weight: bold;
    margin-right: 1px;
    }
    5. The CSS rule that I mentioned in step 4 is an example one but it will give you an idea about the modification you are going to perform.

    6. I hope you have some basic knowledge of CSS which is the only necessary thing that you need to achieve what you want in this case.

    Thank you so much, I did it exacly as you said and it works like a charm
    I thought I would learn on the way but maybe it isn't such a bad idea to read some more into the theory after all

    Cheers!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •