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...
User Profile
Collapse
-
Need to add iframe to this function
-
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 -
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. -
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. -
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... -
-
-
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...Leave a comment:
-
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];
...Leave a comment:
-
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']...Leave a comment:
-
-
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 : '';
}
}...Leave a comment:
-
yes noticed it now (spelling mistake).
Problem is now, it doesn't change the border colour ?????Leave a comment:
-
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']...Leave a comment:
-
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...Leave a comment:
-
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">... -
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.
... -
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');"...Leave a comment:
-
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?Leave a comment:
-
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}"...Leave a comment:
No activity results to display
Show More
Leave a comment: