Search found 7 matches

by sunbedkid
Sat Aug 28, 2004 4:00 am
Forum: Javascript
Topic: Java controlled image and text change in php
Replies: 13
Views: 954

Teh image change works now, but the text still doesn't change.

The new code references the image file (I think). I need to be able to refernce the $description tag that associates the file the image is in.


Does that make sense? Or am I mistaken?
by sunbedkid
Sat Aug 28, 2004 3:08 am
Forum: Javascript
Topic: Java controlled image and text change in php
Replies: 13
Views: 954

Sorry for the delay in responding - the server went down.
I tried the above change, but it seems to have stopped the image change completely.
by sunbedkid
Fri Aug 27, 2004 12:42 pm
Forum: Javascript
Topic: Java controlled image and text change in php
Replies: 13
Views: 954

Does this look right to you? <?php echo "<SCRIPT Language="JAVASCRIPT"> function imgchange(name){if(document.images){document.main.src = "$config[listings_view_images_path]/" + name; }{document.main.title = "$config[listings_view_images_path]/" + name; } else { doc...
by sunbedkid
Fri Aug 27, 2004 11:39 am
Forum: Javascript
Topic: Java controlled image and text change in php
Replies: 13
Views: 954

I belive this is it: <?php echo "<SCRIPT Language=\"JAVASCRIPT\"> function imgchange(name){if(document.images){document.main.src = \"$config[listings_view_images_path]/\" + name; } else { document.main.src = \"images/nophoto.gif\"; }}</SCRIPT>"; ?>
by sunbedkid
Fri Aug 27, 2004 10:50 am
Forum: Javascript
Topic: Java controlled image and text change in php
Replies: 13
Views: 954

In that case, how could I get it to work? I did try experimenting with a javascript programme that I found on the web. I try adapting it to fit, but alas I am to inexperienced so my time was spent in vane. At the moment the image swap works fine, is there a way I can modify this code to swap the tex...
by sunbedkid
Fri Aug 27, 2004 10:06 am
Forum: Javascript
Topic: Java controlled image and text change in php
Replies: 13
Views: 954

As far as I am aware, the imgchange at the bottom of the quote is the function, I have changed this around quite a lot and basically that's the way it works at the moment albeit only changes the image and not the description. Maybe the bit that you think is missing is what I need? Thanks for your re...
by sunbedkid
Fri Aug 27, 2004 9:33 am
Forum: Javascript
Topic: Java controlled image and text change in php
Replies: 13
Views: 954

Java controlled image and text change in php

feyd | Please use tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color] I have been utilizing OR real estate software (php). There is a small problem with the image swap in that with every image uploaded, you can attach a capt...