Soo.. I'm having fun rigging together crazy code for an online portfolio I'm building at the moment. One of those codes is a css/javascript hidden popupbox. That is working just fine.. within that box, I am using a random text-generator code, to display a series of messages for the viewers amusement. Well, I tested out placing hyperlinks into the text variables, and it worked!- only in safari... doh. For some reason the links do not work in firefox, of whom I should give a bit more concerned with, due to multiplatform use. Therefore- I'm curious if someone can figure out what I may be missing from the code, or what is set wrong, that safari can debug on the fly- but firefox gets hung up on.
The website is http://portfolio.pervertedvinyl.com (don't worry.. there are no google-ads or revenue devices)
- once there, it is the animated gif on the lower left. Click on it to review the bubble.. then clicking on the head a few times will rotate the quotes until you hit one that has a yellow colored link on it.
and the code is as follows:
The actual use of the quote, is pulled from here: <br>(warning: I'm having this imported from an external javascript file, so its in document.writein format)
Any help/advice would be most excellent.. I just can not figure out why firefox is snubbing me. Thanks in advance for anyones time!
The website is http://portfolio.pervertedvinyl.com (don't worry.. there are no google-ads or revenue devices)
- once there, it is the animated gif on the lower left. Click on it to review the bubble.. then clicking on the head a few times will rotate the quotes until you hit one that has a yellow colored link on it.
and the code is as follows:
function rotateEvery(sec)
{
var Quotation=new Array()
// QUOTATIONS
Quotation[0] = 'This is <br>pretty nifty, eh?';
Quotation[1] = 'Lets fill this with useful<br> information';
Quotation[2] = 'Useless knowledge<br> goes here';
Quotation[3] = 'You should check out<br>the <a href="p_sacklunch.html">print portfolio</a>';
Quotation[4] = '<a href="wow.html"> Care to buy a link? </a>';
Quotation[5] = 'Think of something <br>snappy...';
Quotation[6] = 'Did you know that...';
var which = Math.round(Math.random()*(Quotation.length - 1));
document.getElementById('textrotator').innerHTML = Quotation[which];
setTimeout('rotateEvery('+click+')', sec*1000);
}
The actual use of the quote, is pulled from here: <br>(warning: I'm having this imported from an external javascript file, so its in document.writein format)
document.writeln('<a href="mailto:nomore@edited.com">');
document.writeln(' <div id="footer"><span class="foot">');
document.writeln(' copyright© 2007 ted davis | all rights reserved. </span>');
document.writeln(' </div></a>');
document.writeln(' <div id="animation">');
document.writeln(' <span style="position:relative;">');
document.writeln(' <a href="javascr'+'ipt:void(0);" onclick="HidePop(\'term1\');">');
document.writeln(' <span id="term1" class="popup">');
document.writeln(' <div id="textrotator"><!--Quotations will be displayed here--></div>');
document.writeln(' </span>');
document.writeln(' </a>');
document.writeln(' <a href="javascr'+'ipt:void(0);" onclick="ShowPop(\'term1\'); rotateEvery(1)">');
document.writeln(' <img src="images/face_ani_sm.gif"></a>');
document.writeln(' </div>');
Any help/advice would be most excellent.. I just can not figure out why firefox is snubbing me. Thanks in advance for anyones time!