User Profile

Collapse

Profile Sidebar

Collapse
cmcdermo
cmcdermo
Last Activity: Jul 18 '07, 10:45 AM
Joined: May 31 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cmcdermo
    started a topic Need to add iframe to this function

    Need to add iframe to this function

    We have this script that currently shows a drop down menu when someone mouseovers a link, it pulls a div that sits off the screen and shows it to the user.

    What i need to do now is i need to add an iframe to this, so it does the same . . . . but i'm a little unsure how to do it.

    thanks.

    [CODE=javascript]TESCODIRECT.lib .topNav = new function() {
    this.VERSION = "1.0.0";
    this.NAME...
    See more | Go to post

  • cmcdermo
    started a topic Problem with divs & form elements

    Problem with divs & form elements

    I have a page that has a mouse over menu (like most sites).

    Today we have noticed a problem, we have a page with drop down menus . . . when a user user the drop down menu it hides behind the form elements?

    Forgot to add this is with IE6, IE7 and Firefox work fine.

    Does anyone know a fix for this, examples etc?

    Thanks
    See more | Go to post

  • cmcdermo
    replied to Iframe
    Thanks for the reply.

    They do need to use the code that's why i asked.

    Within the iframe is product selection from the external site, this then needs to be passed back to our site.

    So that's why i need to close the iframe and redirect.

    Thanks.
    See more | Go to post

    Leave a comment:


  • cmcdermo
    started a topic Iframe

    Iframe

    Hi,

    I have a page that uses an Iframe that points to an external site.

    I need to supply the developers of the external site some javascript that will close the iframe and redirect (all within my parent page).

    so my layout is

    Parent page
    includes iframe which links to external page.

    Any ideas?

    Thanks in advance.
    See more | Go to post

  • cmcdermo
    started a topic Table layout to Div

    Table layout to Div

    Hopefully this is an easy solution.

    I come from the old school tables layout.

    I am trying to accomplish a layout using divs that I can easily do in tables but having trouble with using divs.

    This is what I am trying to do (this is how i'd do it using tables).

    <table width="750" border="1">

    <tr>

    <td width="500">con tent...
    See more | Go to post

  • cmcdermo
    replied to Changing border colour on click?
    Thank you very much for you time and patience :-)
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    sorry, but i'm completely lost.
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    I appreciate your help.

    but still not working, i wish i could fix this myself but i'm pretty novice at this.

    I get 'color' is undefined.

    <script language="javas cript">

    var highlight_color = '#336699';

    function toggle_highligh t(id) {

    var images = document.getEle mentsByTagName( 'img');

    for (var...
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    many thanks for your help . . . but still no border colour change ??

    <script language="javas cript">

    var highlight_color = '#336699';

    function toggle_highligh t(id) {

    var images = document.getEle mentsByTagName( 'img');

    for (var i = 0; i < images.length; i++) {

    var image = images[i];
    ...
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    this is what i have now (doesn't change the border colour)

    <script language="javas cript">

    var highlight_color = '#336699';

    function toggle_highligh t(id) {

    var images = document.getEle mentsByTagName( 'image');

    for (var i = 0; i < images.length; i++) {

    var image = images[i];
    image.style['border-Color']...
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    ah, noticed you have changed the script.

    i will test it
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    this is what i have put in a page to test

    <script language="javas cript">

    function toggle_highligh t(id, color) {

    var images = document.getEle mentsByTagName( 'image');
    for (var i = 0; i < images.length; i++) {

    var image = images[i];

    image.style['border-Color'] = image.id == id ? color : '';

    }

    }...
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    yes noticed it now (spelling mistake).

    Problem is now, it doesn't change the border colour ?????
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    Thanks for the reply.

    I get javascript errors with that.

    I put that in a single page to test and it says line 32 object expected.

    <script>

    function toggle_higlight (id, color) {

    var images = document.getEle mentsByTagName( 'image');
    for (var i = 0; i < images.length; i++) {

    var image = images[i];

    image.style['border-Color']...
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Changing border colour on click?
    That works, problem I have now is that I have 4 clickable images that now change the border colour on click.

    Probem being that when I lets say click on image 1 the border colour changes and if i click on image 2 the border colour changes as well.

    I only want one image to be highlighted with the border colour, so when if image 1 has the border colour highlighted and i click image 2 i want image 2 to have the border colour...
    See more | Go to post

    Leave a comment:


  • cmcdermo
    started a topic Changing border colour on click?

    Changing border colour on click?

    I want to change the colour of a border around an image when a user clicks on the image.

    Not sure how to go about this, i have tried a few things but it doens't seem to work.

    here is my image.

    <img src="images/canvas_colours/images/canvas_taupe_sm all.gif" alt="Taupe" name="taupe_sma ll" id="taupe_small " style="cursor:h and;border-Style:solid;bor der-Width:2px;borde r-Color:white">...
    See more | Go to post

  • cmcdermo
    started a topic If else statement and output.

    If else statement and output.

    I have this script that finds the width of a product and tells me if it is less than or more than 8000px (see script below).

    What I want to do now (with some help) is this.

    I want to display the background image of a table I have depending on width of the product, so rather than the text i want to output background="ima ge1.jpg2 for less than 8000 and background="ima ge2.jpg" for anything higher.
    ...
    See more | Go to post

  • cmcdermo
    replied to Update form field by ID?
    Ah ok i have now changed it to this.

    <script language="javas cript">
    function set_value(id, value) {

    var box = document.getEle mentById('att_W rapColour_${pro duct.code}');

    box.value = value;

    }
    </script>

    And the onclick to this

    onclick="set_va lue(Att_WrapCol our_${product.c ode}, 'taupe');"...
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Update form field by ID?
    Quick question.

    It would be easier for me if I could update the hidden field

    <input type="hidden" name="att_WrapC olour_2030SINGL ECANVAS/0433-002" value="" id="att_WrapCol our_2030SINGLEC ANVAS/0433-002"/>

    But as the values after WrapColour_ is dynamic I'm not sure how to call it.

    Is this possible?
    See more | Go to post

    Leave a comment:


  • cmcdermo
    replied to Update form field by ID?
    Ok I have now it set up like this.

    <script language="javas cript">
    function set_value(id, value) {

    var box = document.getEle mentById('WrapC olour');

    box.value = value;
    }
    </script>

    The form field that is hidden is like this.

    <input type="hidden" id="WrapColour " name="att_WrapC olour_${product .code}"...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...