Results 1 to 9 of 9

Thread: How do I script this???

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 1969
    Location
    Nottingham, England
    Posts
    263

    Default

    Hi Andrei,

    This is weird. I have inserted your script (substituting my image source, obviously), but OCD won't show the icon. It shows the placeholder (white box with red X) and, if I rt. click and select 'properties', it recognises the icon file. Am I missing something??!

    Many thanks.

  2. #2
    Join Date
    Feb 2009
    Posts
    1,549

    Default

    Quote Originally Posted by BLOWERS View Post
    Hi Andrei,

    This is weird. I have inserted your script (substituting my image source, obviously), but OCD won't show the icon. It shows the placeholder (white box with red X) and, if I rt. click and select 'properties', it recognises the icon file. Am I missing something??!

    Many thanks.
    Image file must be GIF, JPEG or PNG. I don't think IE will recognize anything else.

  3. #3
    Join Date
    Dec 1969
    Location
    Nottingham, England
    Posts
    263

    Default

    Andrei,

    The following bit of my template (using 'single' as my field to indicate that the album is fully remastered) DOES return the icon I want to show. AND it is an .ico file!

    <h2 class="album"><dax:if(single)><img width=20 src="c:\program files\orangecd\palette1.ico" /></dax:if>


    To avoid any risk that I have replaced the path wrongly, could you possibly show your script section with my specific icon path, please? Then I can simply cut and paste your section to replace my existing line (i.e. <dax:if(single)><img width=20 src="c:\program files\orangecd\palette1.ico" /></dax:if>).

    Surely it will then show my icon?!! Hope so....

  4. #4
    Join Date
    Feb 2009
    Posts
    1,549

    Default

    Try this.

    Code:
    <script type="text/javascript">
    var r=1;
    <dax:volume><dax:track><dax:if(!trackremastered)>r=0;</dax:if></dax:track></dax:volume>
    if(r){document.write('<img src="file:///c:/program%20files/orangecd/palette1.ico">');}
    </script>

  5. #5
    Join Date
    Dec 1969
    Location
    Nottingham, England
    Posts
    263

    Default

    Brilliant Andrei - many thanks for your help on this! I'm sure you have better things to do, so your time and trouble is much appreciated. It now works perfectly...

Posting Permissions

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