free flash templates free css & photoshop templates free flash animation |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Need help to link a page on the flash buttons
myButton('HOME','_home.htm'); I´m supposed to change the name of the button and then how can I link a page to open on a different one?
myButton('BEBE','www.sample/bebe.htm'); <--------is this the way to do it??? |
#2
|
|||
|
|||
link to external website with flash buttons
You can open main.js and insert these lines at begining of showContent function (line 9) :
if (contentString.indexOf("http") != -1) { location.href=contentString; return true; }
__________________
We are always pleased to read you in our guestbook |
#3
|
|||
|
|||
this is what the buttons will be going to
the script look like this:
<script type="text/javascript"> myButton('HOME','_home.htm'); myButton('ABOUT','_about.htm'); myButton('MY PORTFOLIO','1','_about.htm'); myButton('NEWS','_news.htm'); myButton('CONTACT US','_contact.htm'); </script> th buttons first and last will stay and work as ther are made for, but the second third and forth buttons will be looking like this and the will need to go to a different page. myButton('HOME','_home.htm'); THIS ONE REMAINS myButton('GALERIA','_about.htm'); THIS ONE GOES TO http://www.cabotroopers.com/galeria/index.php myButton(MIEMBROS','_about.htm'); THIS ONE GOES TO http://www.cabotroopers.com/miembros/index.php myButton('FORO','_news.htm'); THIS ONE GOES TO http://www.cabotroopers.com/foro/index.php myButton('CONTACT US','_contact.htm'); AND THIS ONE REMAIN THE SAME I will really appreciate your help us out, I will study much more from now on sorry about my bad english as well |
#4
|
|||
|
|||
flash buttons
Do exactly what i tell you in my last post and everything should work as you expect to.
__________________
We are always pleased to read you in our guestbook |
#5
|
|||
|
|||
I inserted the lines as you tolded me and now the home page doesn´t work what can I do??? The lines in red are the ones I inserted at the begining of line 9
jQuery(document).ready(function(){ hideContent = function(contentString){ jQuery("div.dynamicContent").fadeOut( 1000 ,function() { showContent(contentString);playSound(0); }); }; if (contentString.indexOf("http") != -1) { location.href=contentString; return true; } showContent = function (contentString) { jQuery.ajax({ type: "GET", url: contentString, dataType:"html", success: function(data){ jQuery("div.dynamicContent").html(data); jQuery("div.dynamicContent").slideDown(1000); }, error: function () { alert("Page "+contentString+" not found"); |
#6
|
|||
|
|||
flash buttons
Change :
if (contentString.indexOf("http") != -1) { location.href=contentString; return true; } showContent = function (contentString) { jQuery.ajax({ type: "GET", url: contentString, dataType:"html", success: function(data){ jQuery("div.dynamicContent").html(data); jQuery("div.dynamicContent").slideDown(1000); }, error: function () { alert("Page "+contentString+" not found"); by: showContent = function (contentString) { if (contentString.indexOf("http") != -1) { location.href=contentString; return true; } jQuery.ajax({ ......
__________________
We are always pleased to read you in our guestbook |
|
|